<!DOCTYPE html>
<html lang="en">

<head>
    <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" />
    <title>掌护智能血糖管理系统</title>
    <link rel="shortcut icon" href="image/icon.ico">
    <link rel="stylesheet" media="screen,print" href="css/index.css">
    <link rel="stylesheet" href="css/patientInfo.css">
    <link rel="stylesheet" media="screen,print" href="css/patientInfo.css">

    <!--阳西个性化-->
    <!--<link rel="stylesheet" media="screen,print" href="yangxi/yangxi.min.css">-->

    <!--短信健康留言（阳西版本不需要）-->
    <!--<link rel="stylesheet" href="css/patientInfo_longling.css">-->
</head>

<body>

    <div class="aicareLayout">
        <!--导航栏-->
        <div class="nav clearfix">
            <div class="logo fl" id="logo">
                <a href="javascript:void(0)">
                    <img src="" alt="" class="fl" width='50px' height='50px' style='margin-right:10px;;margin-top:-10px;border:none'>
                    <span class='firmName' style="display:block;color:#fff;margin-top:-5px;"></span><br/>
                    <span style="display:block;color:#fff;font-size:13px;margin-top:-16px;border:none !important">掌护智能血糖管理系统</span>
                    <!--<div class="logoName">
					<p class="hospitalName">深圳南山人民医院</p>
					<p class="sugarSystem">掌护智能血糖管理系统</p>
				</div>-->
                </a>
            </div>
            <ul class="navBarLeft clearfix fl" page=""></ul>
            <div class="navBarRight fr tr clearfix">
                <ul class="clearfix">
                    <li class="fl navMsgImg" id="navMsgBtn"><i></i>

                        <a><img src="image/icon_message.png" alt=""></a>
                    </li>

                    <li class="line fl">|</li>
                    <li class="nav-my fl" id="nav-my">
                        <a href="javascript:void(0)" class="user" id="user-my"></a>
                        <div class="drapDown-user" id="drapDown-user">
                            <ul>
                                <!--<li class="tc" id=""><a href="javascript:void(0)">个人中心</a></li>-->
                                <li class="tc" id="updatePwd"><a href="javascript:void(0)" onclick="updatePwd()">修改密码</a></li>
                                <li class="tc last" id="navExit"><a href="javascript:void(0)" onclick="exitLogin()">退出</a></li>
                            </ul>
                        </div>
                    </li>
                </ul>
            </div>

            <!--信息提醒弹窗-->
            <div class="navMsg" id="navMsgPop">
                <div class="msgBg">
                    <ul>
                        <script type="text/template" id="navMsg-list-template">
                            <%_.each(obj,function(e,i){%>
                                <li value="<%=e.hosNo%>">
                                    <a href="WEB-INF/page/html/intelligentWarn.html?navMsgInHospitalNo=<%=e.hosNo%>">
                                        <span><%=e.type==1?'高值预警':'低值预警'%>，</span>
                                        <span><%=e.name%></span>
                                        <span>
									<%if(e.timeType==1){%>
										空腹
									<%}else if(e.timeType==2){%>
										早餐后
									<%}else if(e.timeType==3){%>
										午餐前
									<%}else if(e.timeType==4){%>
										午餐后
									<%}else if(e.timeType==5){%>
										晚餐前
									<%}else if(e.timeType==6){%>
										晚餐后
									<%}else if(e.timeType==7){%>
										睡前
									<%}else if(e.timeType==8){%>
										凌晨
									<%}%>
								</span>
                                        <span><%=e.sugar%>mmol/L</span>
                                    </a>
                                </li>
                                <%})%>
                        </script>
                    </ul>
                    <a class="tc" href="WEB-INF/page/html/intelligentWarn.html?navMsg=1">查看全部</a>
                </div>
            </div>
        </div>

        <!--主页-->
        <div class="content">
            <!--主页左边-->
            <div class="contentLeft">
                <div class="topDoctor">
                    <img id="topDoctorPic" src="image/home_people_pic_man.png" alt="">
                    <p class="tc doctorName" id="userLogo"></p>
                    <p class="tc doctorInfo " id="userDept"></p>
                </div>
                <div class="midPatient">
                    <div class="addPatient" id="addPatientBtn">添加患者</div>
                    <div class="searchPatient" id="searchPatient">
                        <input type="text" placeholder="姓名/住院号/身份证号码" onkeydown="searchPop(event)" />
                    </div>
                    <div class="searchPatientPop" id="searchPatientPop">
                        <ul>
                            <!--<li></li>-->
                        </ul>
                        <!--<p>数据过多，请精确搜索</p>-->
                    </div>
                </div>

                <!--折叠菜单-->
                <div class="botHospitalInfo">
                    <ul id="departmentList">
                        <!--第1级菜单-->
                        <li class="levelOne"><a href="javascript:void(0)" class="inactive">我的患者</a>
                            <ul>
                                <!--第2级菜单-->
                                <li class="levelTwo" id="Sugar1"><a href="javascript:void(0)" class="">一型糖尿病(<span id="total1"></span>)</a>
                                    <ul>
                                        <!--第3级菜单-->
                                        <!--<li><a href="javascript:void(0)" onclick="loadPatientInfo(this)">1</a></li>-->
                                    </ul>
                                </li>

                                <li class="levelTwo" id="Sugar2"><a href="javascript:void(0)" class="">二型糖尿病)(<span
									id="total2"></span>)</a>
                                    <ul>
                                        <!--<li><a href="javascript:void(0)"  onclick="loadPatientInfo(this)">2型</a></li>-->
                                    </ul>
                                </li>

                                <li class="levelTwo" id="Sugar3"><a href="javascript:void(0)" class="">妊娠型糖尿病(<span
									id="total3"></span>)</a>
                                    <ul>
                                        <!--<li><a href="javascript:void(0)" onclick="loadPatientInfo(this)">3妊娠型</a></li>-->
                                    </ul>
                                </li>

                                <li class="levelTwo" id="Sugar4"><a href="javascript:void(0)" class="">特殊型糖尿病(<span
									id="total4"></span>)</a>
                                    <ul>
                                        <!--<li><a href="javascript:void(0)" onclick="loadPatientInfo(this)">4其他型</a></li>-->
                                    </ul>
                                </li>

                                <li class="levelTwo" id="Sugar5"><a href="javascript:void(0)" class="">非糖尿病(<span
									id="total5"></span>)</a>
                                    <ul>
                                        <!--<li><a href="javascript:void(0)" onclick="loadPatientInfo(this)">4其他型</a></li>-->
                                    </ul>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>

            <!--主页右边-->
            <div class="contentRight">
                <div class="firstKinds main-template-block">
                    <div class="bar">
                        <ul>
                            <li class="li_0">
                                <a href="WEB-INF/page/html/intelligentWarn.html">
                                    <p class="num"></p>
                                    <p class="numInfo">血糖异常患者</p>
                                </a>
                            </li>
                            <li class="li_1">
                                <a href="WEB-INF/page/html/consultants.html?templateType=2">
                                    <p class="num"></p>
                                    <p class="numInfo">待会诊任务</p>
                                </a>
                            </li>
                            <li class="li_2" onclick="specialPatient()">
                                <a href="javascript:void(0)">
                                    <p class="num"></p>
                                    <p class="numInfo">特别关注患者</p>
                                </a>
                            </li>
                            <li class="li_3" onclick="weekAddPatient()">
                                <a href="javascript:void(0)">
                                    <p class="num"></p>
                                    <p class="numInfo">本周新增患者</p>
                                </a>
                            </li>
                        </ul>
                    </div>
                    <div class="bedTable">
                        <div class="bedTableTitle"><span class="bedSheet"></span>（<span class="bedCount"></span>人）</div>
                        <!--列表-->
                        <div class="list">
                            <script type="text/template" id="bedTable-list-template">
                                <%_.each(obj,function(e,i){%>
                                    <div class="item <%=e.special==0?'':'active'%> <%=e.status==1?'':'leaveHospital'%>">
                                        <%if(e.status==1){%>
                                            <div class="name" data-patientId="<%=e.patientId%>" onclick="loadPatientInfo(this)">
                                                <%=e.name%>
                                            </div>
                                            <div class="info" data-patientId="<%=e.patientId%>" onclick="loadPatientInfo(this)">
                                                <span><%=(e.sex==1?'男':'女')%></span>
                                                <span><%=e.age<0?0:e.age%>岁</span>
                                            </div>
                                            <div class="time" data-patientId="<%=e.patientId%>" onclick="loadPatientInfo(this)">
                                                <%if(e.inhospitalTime){%>
                                                    <%var time=e.inhospitalTime.split(' ')[0];%>
                                                        <%time=time.split('-');%>
                                                            <%print(time[0]+'年'+time[1]+'月'+time[2]+'日')%>
                                                                <%}%>
                                            </div>
                                            <div class="begNo">
                                                <a title="<%=e.sickbedNo%>床">
                                                    <%if(e.sex==2){%>
                                                        <span style="color:#e95959;"><%=e.sickbedNo%>床</span>
                                                        <%}else{%>
                                                            <span><%=e.sickbedNo%>床</span>
                                                            <%}%>
                                                </a>
                                                <div class="start" value="<%=(e.special==0?'star':'noStar')%>" special="<%=e.special%>" patientId="<%=e.patientId%>" timeout="true"></div>
                                            </div>
                                            <%}else{%>
                                                <div class="name" data-patientId="<%=e.patientId%>" onclick="loadPatientInfo(this)">
                                                    <%=e.name%>
                                                </div>
                                                <div class="info" data-patientId="<%=e.patientId%>" onclick="loadPatientInfo(this)">
                                                    <span><%=(e.sex==1?'男':'女')%></span>
                                                    <span><%=e.age<0?0:e.age%>岁</span>
                                                </div>
                                                <div class="time" data-patientId="<%=e.patientId%>" onclick="loadPatientInfo(this)">
                                                    <%if(e.inhospitalTime){%>
                                                        <%var time=e.inhospitalTime.split(' ')[0];%>
                                                            <%time=time.split('-');%>
                                                                <%print(time[0]+'年'+time[1]+'月'+time[2]+'日')%>
                                                                    <%}%>
                                                </div>
                                                <div class="begNo">
                                                    <div data-patientId="<%=e.patientId%>" onclick="loadPatientInfo(this)">已出院</div>
                                                </div>
                                                <%}%>
                                    </div>
                                    <%})%>
                            </script>
                        </div>
                        <div class="page"></div>
                    </div>
                </div>

                <div class="secondKinds main-template-block hideItem">
                    <!--基本信息-->
                    <div class="basicInfo">
                        <div class="titleInfo">
                            <div class="analyseTitle">
                                基本信息
                            </div>
                            <div class="titleRightBtn">
                                <button class="sugar" id="sugarWarnBtn">血糖预警</button>
                                <button class="edit" id="sugarEditBtn">编辑信息</button>
                            </div>
                        </div>
                        <div class="basicInfoDetail ">
                            <script type="text/template" id="patient-baseInfo-template">
                                <%_.each(obj,function(e,i){%>
                                    <div class="clearfix">
                                        <div class="list clearfix fl list1">
                                            <p class="item fl">住院号：</p>
                                            <p class="con fl">
                                                <%=e.hospitalizationNo%>
                                            </p>
                                        </div>
                                        <div class="list clearfix fl list2">
                                            <p class="item fl">姓名：</p>
                                            <p class="con fl" data-value="patientId">
                                                <%=e.name%>
                                            </p>
                                        </div>
                                        <div class="list clearfix fl list3">
                                            <p class="item fl">性别：</p>
                                            <p class="con fl">
                                                <%=e.sex==1?'男':'女'%>
                                            </p>
                                        </div>
                                        <div class="list clearfix fl list4">
                                            <p class="item fl">身高(cm)：</p>
                                            <p class="con fl">
                                                <%print(e.height?e.height:'')%>
                                            </p>
                                        </div>
                                        <div class="list clearfix fl list5">
                                            <p class="item fl">体重(kg)：</p>
                                            <p class="con fl">
                                                <%print(e.weight?e.weight:'')%>
                                            </p>
                                        </div>
                                        <div class="list clearfix fl list6">
                                            <p class="item fl">BMI指数：</p>
                                            <p class="con fl">
                                                <%var height=parseFloat((e.height?e.height:0)/100)%>
                                                    <%var weight=parseFloat(e.weight?e.weight:0)%>
                                                        <%var BMI=(parseFloat(weight/(height*height))).toFixed(2)%>
                                                            <%if(isNaN(BMI)){%>
                                                                <%print('')%>
                                                                    <%}else{%>
                                                                        <%print(BMI)%>
                                                                            <%}%>
                                            </p>
                                        </div>
                                    </div>
                                    <div class="clearfix">
                                        <div class="list clearfix fl list1">
                                            <p class="item fl">出生年月：</p>
                                            <p class="con fl">
                                                <%print(e.birthday?e.birthday.split(' ')[0]:'')%>
                                            </p>
                                        </div>
                                        <div class="list clearfix fl list2">
                                            <p class="item fl">年龄：</p>
                                            <p class="con fl">
                                                <%=e.age<0?0:e.age%> 岁</p>
                                        </div>
                                        <div class="list clearfix fl list3">
                                            <p class="item fl">身份证号：</p>
                                            <p class="con fl">
                                                <%=e.idCard%>
                                            </p>
                                        </div>
                                        <div class="list clearfix fl list4">
                                            <p class="item fl">床号：</p>
                                            <p class="con fl">
                                                <%=e.sickbedNo%>床</p>
                                        </div>
                                        <div class="list clearfix fl list5">
                                            <p class="item fl">手机号：</p>
                                            <p class="con fl">
                                                <%=e.mobile%>
                                            </p>
                                        </div>
                                        <div class="list clearfix fl list6">
                                            <p class="item fl">分组：</p>
                                            <p class="con fl">
                                                <%if(e.diabetesType==1){%>1型糖尿病
                                                    <%}else if(e.diabetesType==2){%>2型糖尿病
                                                        <%}else if(e.diabetesType==3){%>妊娠型糖尿病
                                                            <%}else if(e.diabetesType==4){%>特殊型糖尿病
                                                                <%}else{%>非糖尿病
                                                                    <%}%>
                                            </p>
                                        </div>
                                    </div>

                                    <div class="clearfix">
                                        <div class="list clearfix fl list1">
                                            <p class="item fl">入院日期：</p>
                                            <p class="con fl">
                                                <%print(e.inhospitalTime?e.inhospitalTime.split(' ')[0]:'')%>
                                            </p>
                                        </div>
                                        <div class="list clearfix fl list2">
                                            <p class="item fl">科室：</p>
                                            <p class="con fl" data-value="<%=e.deptId%>">
                                                <%=e.deptName%>
                                            </p>
                                        </div>

                                        <div class="list clearfix fl list3">
                                            <p class="item fl">主治医师：</p>
                                            <p class="con fl" data-value="<%=e.doctorId%>">
                                                <%=e.doctorName%>
                                            </p>
                                        </div>
                                        <div class="list clearfix fl list4">
                                            <p class="item fl">责任护士：</p>
                                            <p class="con fl" data-value="<%=e.nurseId%>">
                                                <%=e.nurseName%>
                                            </p>
                                        </div>
                                        <div class="list clearfix fl list5">
                                            <p class="item fl">护理级别：</p>
                                            <p class="con fl" data-value="<%=e.nurseLevel%>">
                                                <%if(e.nurseLevel==1){%>一级护理
                                                    <%}else if(e.diabetesType==2){%>二级护理
                                                        <%}else if(e.diabetesType==3){%>三级护理
                                                            <%}else{%>特级护理
                                                                <%}%>
                                            </p>
                                        </div>
                                    </div>
                                    <div class="clearfix txtBox">
                                        <div class="list clearfix fl list7">
                                            <p class="item fl">入院诊断：</p>
                                            <p class="con fl">
                                                <%print(e.inhospitalDiagnose?e.inhospitalDiagnose:'')%>
                                            </p>
                                        </div>
                                        <div class="list clearfix fl list8">
                                            <p class="item fl">并发症：</p>
                                            <p class="con fl">
                                                <%print(e.complication?e.complication:'')%>
                                            </p>
                                        </div>
                                    </div>
                                    <div class="clearfix txtBox">
                                        <div class="list especially clearfix fl list1">
                                            <p class="item fl">家族史：</p>
                                            <p class="con fl">
                                                <%print(e.familySickness?e.familySickness:'')%>
                                            </p>
                                        </div>
                                    </div>
                                    <div class="clearfix txtBox">
                                        <div class="list especially clearfix fl list1">
                                            <p class="item fl">药物过敏史：</p>
                                            <p class="con fl">
                                                <%print(e.allergy?e.allergy:'')%>
                                            </p>
                                        </div>
                                    </div>
                                    <div class="clearfix txtBox">
                                        <div class="list especially clearfix fl list1">
                                            <p class="item fl">过去治疗方式：</p>
                                            <p class="con fl">
                                                <%print(e.historyTherapy?e.historyTherapy:'')%>
                                            </p>
                                        </div>
                                    </div>
                                    <%})%>
                            </script>

                        </div>
                    </div>

                    <!--按钮切换-->
                    <!--<div class="basicSugarTab tc">-->
                    <!--<a class="active" href="javascript:void(0)" onclick="loadTabLeft()">血糖</a>-->
                    <!--<a href="javascript:void(0)" onclick="loadTabRight()">糖化血红蛋白</a>-->
                    <!--</div>-->

                    <!--左边 血糖-->
                    <div class="tabLeft ">
                        <!--血糖概况-->
                        <div class="sugarStatus">
                            <div class="analyseTitle clearfix">
                                <p class="fl">血糖概况</p>
                                <!--龙陵医院特制版本-->
                                <!--<a class="addSugarPrintBtn3 fr tc sugarStatusPrintBtn" id="addSugarPrintBtn3"  href="javascript:void(0)">血糖测定记录表</a>
							<a class="addSugarPrintBtn2 fr tc sugarStatusPrintBtn" id="addSugarPrintBtn2"  href="javascript:void(0)">血糖记录表二</a>
							<a class="addSugarPrintBtn fr tc sugarStatusPrintBtn" id="addSugarPrintBtn"  href="javascript:void(0)">血糖记录表一</a>-->
                                <!-----标准版--->
                                <a class="addSugarPrintBtn fr tc sugarStatusPrintBtn" id="addSugarPrintBtn" href="javascript:void(0)">打印</a>

                                <a class="addSugarBtn fr tc sugarStatusPrintBtn" id="addSugarBtn" href="javascript:void(0)">添加</a>
                            </div>
                            <div class="timeSelect clearfix" id="sugarStatus">
                                <div class="fl time-select-btn">
                                    <a class="active" href="javascript:void (0)" val="time">时段</a>
                                    <a href="javascript:void (0)" val="table-vertical">时间</a>
                                </div>
                                <!--<p class="fl">单位：次</p>-->
                                <ul class="fr">
                                    <li class="fl timeBtn" data-time="1"><a class="bg_sel" href="javascript:void(0)">最近一周</a></li>
                                    <li class="fl timeBtn" data-time="2"><a href="javascript:void(0)">最近1个月</a></li>
                                    <li class="fl timeBtn" data-time="3"><a href="javascript:void(0)">最近3个月</a></li>
                                    <li class="fl timeBtn" data-time="4"><a href="javascript:void(0)">全部</a></li>
                                </ul>
                            </div>
                            <!--表格-->
                            <div class="list-time-content">
                                <!--时段-->
                                <div class="patientList">
                                    <table class="list" cellspacing="0" cellpadding="0">
                                        <thead>
                                            <tr>
                                                <td rowspan="2" class="td1">日期</td>
                                                <td colspan="2">早餐</td>
                                                <td colspan="2">午餐</td>
                                                <td colspan="2">晚餐</td>
                                                <td rowspan="2" class="td2">睡前</td>
                                                <td rowspan="2" class="td2">凌晨</td>
                                            </tr>
                                            <tr>
                                                <td class="td2">空腹</td>
                                                <td class="td2">后</td>
                                                <td class="td2">前</td>
                                                <td class="td2">后</td>
                                                <td class="td2">前</td>
                                                <td class="td2">后</td>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <script type="text/template" id="sugarStatus-list-template">
                                                <%_.each(obj,function(e,i){%>
                                                    <tr>
                                                        <td class="td1">
                                                            <%=e.date%>
                                                        </td>
                                                        <td class="td2">
                                                            <%_.each(e.timeTypeSugars,function(e,i){%>
                                                                <%if(e.timeType==1){%>

                                                                    <%if(e.tests[0].type==1){%>
                                                                        <p testId="<%=e.tests[0].testId%>" class="<%print(e.tests[0].imei=='system'?'addHand':'')%>" sugar="<%=e.tests[0].sugar%>" timeType="<%=e.tests[0].timeType%>" timeTypeName="<%=e.tests[0].timeTypeName%>" createTime="<%print(e.tests[0].createTime?e.tests[0].createTime:'')%>">
                                                                            <%var sugar=parseFloat(e.tests[0].sugar)%>
                                                                                <%if(sugar<e.text[0].minValue){%>
                                                                                    <span style="color:#edb344;"><%=sugar%></span>
                                                                                    <%}else if(sugar>e.text[0].maxValue){%>
                                                                                        <span style="color:#e95959;"><%=sugar%></span>
                                                                                        <%}else{%>
                                                                                            <span><%=sugar%></span>
                                                                                            <%}%>
                                                                                                <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                                <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                        </p>
                                                                        <div class="addSugarDisplayMask">
                                                                            <div class="addSugarDisplay ">
                                                                                <ul>
                                                                                    <%_.each(e.tests,function(ele,j){%>
                                                                                        <li class="clearfix">
                                                                                            <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                <%if(ele.sugar<e.text[0].minValue){%>
                                                                                                    <span style="color:#edb344;"><%=ele.sugar%></span>
                                                                                                    <%}else if(ele.sugar>e.text[0].maxValue){%>
                                                                                                        <span style="color:#e95959;"><%=ele.sugar%></span>
                                                                                                        <%}else{%>
                                                                                                            <span><%=ele.sugar%></span>
                                                                                                            <%}%>
                                                                                                                <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                                <%if(ele.type!='1'){%>
                                                                                                                    <span><%=ele.sugarText%></span>
                                                                                                                    <%}%>
                                                                                            </p>
                                                                                            <ul class="addSugarTxt fl">
                                                                                                <li>
                                                                                                    <%=ele.remark?ele.remark:''%>
                                                                                                </li>
                                                                                            </ul>
                                                                                        </li>
                                                                                        <%})%>
                                                                                </ul>
                                                                            </div>
                                                                        </div>
                                                                        <%}else if(e.tests[0].type==2){%>
                                                                            <span>拒测</span>
                                                                            <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                            <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                            <div class="addSugarDisplayMask">
                                                                                <div class="addSugarDisplay ">
                                                                                    <ul>
                                                                                        <%_.each(e.tests,function(ele,j){%>
                                                                                            <li class="clearfix">
                                                                                                <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                    <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                    <span><%=ele.sugarText%></span>
                                                                                                </p>
                                                                                                <ul class="addSugarTxt fl">
                                                                                                    <li>
                                                                                                        <%=ele.remark?ele.remark:''%>
                                                                                                    </li>
                                                                                                </ul>
                                                                                            </li>
                                                                                            <%})%>
                                                                                    </ul>
                                                                                </div>
                                                                            </div>
                                                                            <%}else if(e.tests[0].type==3){%>
                                                                                <span>外出</span>
                                                                                <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                                <div class="addSugarDisplayMask">
                                                                                    <div class="addSugarDisplay ">
                                                                                        <ul>
                                                                                            <%_.each(e.tests,function(ele,j){%>
                                                                                                <li class="clearfix">
                                                                                                    <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                        <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                        <span><%=ele.sugarText%></span>
                                                                                                    </p>
                                                                                                    <ul class="addSugarTxt fl">
                                                                                                        <li>
                                                                                                            <%=ele.remark?ele.remark:''%>
                                                                                                        </li>
                                                                                                    </ul>
                                                                                                </li>
                                                                                                <%})%>
                                                                                        </ul>
                                                                                    </div>
                                                                                </div>
                                                                                <%}else if(e.tests[0].type==4){%>
                                                                                    <span>进食</span>
                                                                                    <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                    <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                                    <div class="addSugarDisplayMask">
                                                                                        <div class="addSugarDisplay ">
                                                                                            <ul>
                                                                                                <%_.each(e.tests,function(ele,j){%>
                                                                                                    <li class="clearfix">
                                                                                                        <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                            <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                            <span><%=ele.sugarText%></span>
                                                                                                        </p>
                                                                                                        <ul class="addSugarTxt fl">
                                                                                                            <li>
                                                                                                                <%=ele.remark?ele.remark:''%>
                                                                                                            </li>
                                                                                                        </ul>
                                                                                                    </li>
                                                                                                    <%})%>
                                                                                            </ul>
                                                                                        </div>
                                                                                    </div>
                                                                                    <%}else if(e.tests[0].type==5){%>
                                                                                        <span>检查</span>
                                                                                        <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                        <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                                        <div class="addSugarDisplayMask">
                                                                                            <div class="addSugarDisplay ">
                                                                                                <ul>
                                                                                                    <%_.each(e.tests,function(ele,j){%>
                                                                                                        <li class="clearfix">
                                                                                                            <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                                <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                                <span><%=ele.sugarText%></span>
                                                                                                            </p>
                                                                                                            <ul class="addSugarTxt fl">
                                                                                                                <li>
                                                                                                                    <%=ele.remark?ele.remark:''%>
                                                                                                                </li>
                                                                                                            </ul>
                                                                                                        </li>
                                                                                                        <%})%>
                                                                                                </ul>
                                                                                            </div>
                                                                                        </div>
                                                                                        <%}else if(e.tests[0].type==6){%>
                                                                                            <span>其他</span>
                                                                                            <%}%>
                                                                                                <%}%>
                                                                                                    <%})%>
                                                        </td>

                                                        <td class="td2">
                                                            <%_.each(e.timeTypeSugars,function(e,i){%>
                                                                <%if(e.timeType==2){%>
                                                                    <%if(e.tests[0].type==1){%>
                                                                        <p testId="<%=e.tests[0].testId%>" class="<%print(e.tests[0].imei=='system'?'addHand':'')%>" sugar="<%=e.tests[0].sugar%>" timeType="<%=e.tests[0].timeType%>" timeTypeName="<%=e.tests[0].timeTypeName%>" createTime="<%print(e.tests[0].createTime?e.tests[0].createTime:'')%>">
                                                                            <%var sugar=parseFloat(e.tests[0].sugar)%>
                                                                                <%if(sugar<e.text[1].minValue){%>
                                                                                    <span style="color:#edb344;"><%=sugar%></span>
                                                                                    <%}else if(sugar>e.text[1].maxValue){%>
                                                                                        <span style="color:#e95959;"><%=sugar%></span>
                                                                                        <%}else{%>
                                                                                            <span><%=sugar%></span>
                                                                                            <%}%>
                                                                                                <!--<span>你好</span>-->
                                                                                                <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                                <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                        </p>
                                                                        <div class="addSugarDisplayMask">
                                                                            <div class="addSugarDisplay ">
                                                                                <ul>
                                                                                    <%_.each(e.tests,function(ele,j){%>
                                                                                        <li class="clearfix">
                                                                                            <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                <%if(ele.sugar<e.text[1].minValue){%>
                                                                                                    <span style="color:#edb344;"><%=ele.sugar%></span>
                                                                                                    <%}else if(ele.sugar>e.text[1].maxValue){%>
                                                                                                        <span style="color:#e95959;"><%=ele.sugar%></span>
                                                                                                        <%}else{%>
                                                                                                            <span><%=ele.sugar%></span>
                                                                                                            <%}%>
                                                                                                                <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                                <%if(ele.type!='1'){%>
                                                                                                                    <span><%=ele.sugarText%></span>
                                                                                                                    <%}%>
                                                                                            </p>
                                                                                            <ul class="addSugarTxt fl">
                                                                                                <li>
                                                                                                    <%=ele.remark?ele.remark:''%>
                                                                                                </li>
                                                                                            </ul>
                                                                                        </li>
                                                                                        <%})%>
                                                                                </ul>
                                                                            </div>
                                                                        </div>
                                                                        <%}else if(e.tests[0].type==2){%>
                                                                            <span>拒测</span>
                                                                            <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                            <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                            <div class="addSugarDisplayMask">
                                                                                <div class="addSugarDisplay ">
                                                                                    <ul>
                                                                                        <%_.each(e.tests,function(ele,j){%>
                                                                                            <li class="clearfix">
                                                                                                <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                    <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                    <span><%=ele.sugarText%></span>
                                                                                                </p>
                                                                                                <ul class="addSugarTxt fl">
                                                                                                    <li>
                                                                                                        <%=ele.remark?ele.remark:''%>
                                                                                                    </li>
                                                                                                </ul>
                                                                                            </li>
                                                                                            <%})%>
                                                                                    </ul>
                                                                                </div>
                                                                            </div>
                                                                            <%}else if(e.tests[0].type==3){%>
                                                                                <span>外出</span>
                                                                                <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                                <div class="addSugarDisplayMask">
                                                                                    <div class="addSugarDisplay ">
                                                                                        <ul>
                                                                                            <%_.each(e.tests,function(ele,j){%>
                                                                                                <li class="clearfix">
                                                                                                    <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                        <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                        <span><%=ele.sugarText%></span>
                                                                                                    </p>
                                                                                                    <ul class="addSugarTxt fl">
                                                                                                        <li>
                                                                                                            <%=ele.remark?ele.remark:''%>
                                                                                                        </li>
                                                                                                    </ul>
                                                                                                </li>
                                                                                                <%})%>
                                                                                        </ul>
                                                                                    </div>
                                                                                </div>
                                                                                <%}else if(e.tests[0].type==4){%>
                                                                                    <span>进食</span>
                                                                                    <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                    <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                                    <div class="addSugarDisplayMask">
                                                                                        <div class="addSugarDisplay ">
                                                                                            <ul>
                                                                                                <%_.each(e.tests,function(ele,j){%>
                                                                                                    <li class="clearfix">
                                                                                                        <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                            <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                            <span><%=ele.sugarText%></span>
                                                                                                        </p>
                                                                                                        <ul class="addSugarTxt fl">
                                                                                                            <li>
                                                                                                                <%=ele.remark?ele.remark:''%>
                                                                                                            </li>
                                                                                                        </ul>
                                                                                                    </li>
                                                                                                    <%})%>
                                                                                            </ul>
                                                                                        </div>
                                                                                    </div>
                                                                                    <%}else if(e.tests[0].type==5){%>
                                                                                        <span>检查</span>
                                                                                        <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                        <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                                        <div class="addSugarDisplayMask">
                                                                                            <div class="addSugarDisplay ">
                                                                                                <ul>
                                                                                                    <%_.each(e.tests,function(ele,j){%>
                                                                                                        <li class="clearfix">
                                                                                                            <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                                <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                                <span><%=ele.sugarText%></span>
                                                                                                            </p>
                                                                                                            <ul class="addSugarTxt fl">
                                                                                                                <li>
                                                                                                                    <%=ele.remark?ele.remark:''%>
                                                                                                                </li>
                                                                                                            </ul>
                                                                                                        </li>
                                                                                                        <%})%>
                                                                                                </ul>
                                                                                            </div>
                                                                                        </div>
                                                                                        <%}else if(e.tests[0].type==6){%>
                                                                                            <span>其他</span>
                                                                                            <%}%>
                                                                                                <%}%>
                                                                                                    <%})%>
                                                        </td>

                                                        <td class="td2">
                                                            <%_.each(e.timeTypeSugars,function(e,i){%>
                                                                <%if(e.timeType==3){%>
                                                                    <%if(e.tests[0].type==1){%>
                                                                        <p testId="<%=e.tests[0].testId%>" class="<%print(e.tests[0].imei=='system'?'addHand':'')%>" sugar="<%=e.tests[0].sugar%>" timeType="<%=e.tests[0].timeType%>" timeTypeName="<%=e.tests[0].timeTypeName%>" createTime="<%print(e.tests[0].createTime?e.tests[0].createTime:'')%>">
                                                                            <%var sugar=parseFloat(e.tests[0].sugar)%>
                                                                                <%if(sugar<e.text[2].minValue){%>
                                                                                    <span style="color:#edb344;"><%=sugar%></span>
                                                                                    <%}else if(sugar>e.text[2].maxValue){%>
                                                                                        <span style="color:#e95959;"><%=sugar%></span>
                                                                                        <%}else{%>
                                                                                            <span><%=sugar%></span>
                                                                                            <%}%>
                                                                                                <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                                <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                        </p>
                                                                        <div class="addSugarDisplayMask">
                                                                            <div class="addSugarDisplay ">
                                                                                <ul>
                                                                                    <%_.each(e.tests,function(ele,j){%>
                                                                                        <li class="clearfix">
                                                                                            <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                <%if(ele.sugar<e.text[2].maxValue){%>
                                                                                                    <span style="color:#edb344;"><%=ele.sugar%></span>
                                                                                                    <%}else if(ele.sugar>e.text[2].maxValue){%>
                                                                                                        <span style="color:#e95959;"><%=ele.sugar%></span>
                                                                                                        <%}else{%>
                                                                                                            <span><%=ele.sugar%></span>
                                                                                                            <%}%>
                                                                                                                <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                                <%if(ele.type!='1'){%>
                                                                                                                    <span><%=ele.sugarText%></span>
                                                                                                                    <%}%>
                                                                                            </p>
                                                                                            <ul class="addSugarTxt fl">
                                                                                                <li>
                                                                                                    <%=ele.remark?ele.remark:''%>
                                                                                                </li>
                                                                                            </ul>
                                                                                        </li>
                                                                                        <%})%>
                                                                                </ul>
                                                                            </div>
                                                                        </div>
                                                                        <%}else if(e.tests[0].type==2){%>
                                                                            <span>拒测</span>
                                                                            <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                            <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                            <div class="addSugarDisplayMask">
                                                                                <div class="addSugarDisplay ">
                                                                                    <ul>
                                                                                        <%_.each(e.tests,function(ele,j){%>
                                                                                            <li class="clearfix">
                                                                                                <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                    <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                    <span><%=ele.sugarText%></span>
                                                                                                </p>
                                                                                                <ul class="addSugarTxt fl">
                                                                                                    <li>
                                                                                                        <%=ele.remark?ele.remark:''%>
                                                                                                    </li>
                                                                                                </ul>
                                                                                            </li>
                                                                                            <%})%>
                                                                                    </ul>
                                                                                </div>
                                                                            </div>
                                                                            <%}else if(e.tests[0].type==3){%>
                                                                                <span>外出</span>
                                                                                <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                                <div class="addSugarDisplayMask">
                                                                                    <div class="addSugarDisplay ">
                                                                                        <ul>
                                                                                            <%_.each(e.tests,function(ele,j){%>
                                                                                                <li class="clearfix">
                                                                                                    <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                        <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                        <span><%=ele.sugarText%></span>
                                                                                                    </p>
                                                                                                    <ul class="addSugarTxt fl">
                                                                                                        <li>
                                                                                                            <%=ele.remark?ele.remark:''%>
                                                                                                        </li>
                                                                                                    </ul>
                                                                                                </li>
                                                                                                <%})%>
                                                                                        </ul>
                                                                                    </div>
                                                                                </div>
                                                                                <%}else if(e.tests[0].type==4){%>
                                                                                    <span>进食</span>
                                                                                    <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                    <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                                    <div class="addSugarDisplayMask">
                                                                                        <div class="addSugarDisplay ">
                                                                                            <ul>
                                                                                                <%_.each(e.tests,function(ele,j){%>
                                                                                                    <li class="clearfix">
                                                                                                        <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                            <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                            <span><%=ele.sugarText%></span>
                                                                                                        </p>
                                                                                                        <ul class="addSugarTxt fl">
                                                                                                            <li>
                                                                                                                <%=ele.remark?ele.remark:''%>
                                                                                                            </li>
                                                                                                        </ul>
                                                                                                    </li>
                                                                                                    <%})%>
                                                                                            </ul>
                                                                                        </div>
                                                                                    </div>
                                                                                    <%}else if(e.tests[0].type==5){%>
                                                                                        <span>检查</span>
                                                                                        <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                        <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                                        <div class="addSugarDisplayMask">
                                                                                            <div class="addSugarDisplay ">
                                                                                                <ul>
                                                                                                    <%_.each(e.tests,function(ele,j){%>
                                                                                                        <li class="clearfix">
                                                                                                            <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                                <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                                <span><%=ele.sugarText%></span>
                                                                                                            </p>
                                                                                                            <ul class="addSugarTxt fl">
                                                                                                                <li>
                                                                                                                    <%=ele.remark?ele.remark:''%>
                                                                                                                </li>
                                                                                                            </ul>
                                                                                                        </li>
                                                                                                        <%})%>
                                                                                                </ul>
                                                                                            </div>
                                                                                        </div>
                                                                                        <%}else if(e.tests[0].type==6){%>
                                                                                            <span>其他</span>
                                                                                            <%}%>
                                                                                                <%}%>
                                                                                                    <%})%>
                                                        </td>

                                                        <td class="td2">
                                                            <%_.each(e.timeTypeSugars,function(e,i){%>
                                                                <%if(e.timeType==4){%>
                                                                    <%if(e.tests[0].type==1){%>
                                                                        <p testId="<%=e.tests[0].testId%>" class="<%print(e.tests[0].imei=='system'?'addHand':'')%>" sugar="<%=e.tests[0].sugar%>" timeType="<%=e.tests[0].timeType%>" timeTypeName="<%=e.tests[0].timeTypeName%>" createTime="<%print(e.tests[0].createTime?e.tests[0].createTime:'')%>">
                                                                            <%var sugar=parseFloat(e.tests[0].sugar)%>
                                                                                <%if(sugar<e.text[3].minValue){%>
                                                                                    <span style="color:#edb344;"><%=sugar%></span>
                                                                                    <%}else if(sugar>e.text[3].maxValue){%>
                                                                                        <span style="color:#e95959;"><%=sugar%></span>
                                                                                        <%}else{%>
                                                                                            <span><%=sugar%></span>
                                                                                            <%}%>
                                                                                                <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                                <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                        </p>
                                                                        <div class="addSugarDisplayMask">
                                                                            <div class="addSugarDisplay ">
                                                                                <ul>
                                                                                    <%_.each(e.tests,function(ele,j){%>
                                                                                        <li class="clearfix">
                                                                                            <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                <%if(ele.sugar<e.text[3].minValue){%>
                                                                                                    <span style="color:#edb344;"><%=ele.sugar%></span>
                                                                                                    <%}else if(ele.sugar>e.text[3].maxValue){%>
                                                                                                        <span style="color:#e95959;"><%=ele.sugar%></span>
                                                                                                        <%}else{%>
                                                                                                            <span><%=ele.sugar%></span>
                                                                                                            <%}%>
                                                                                                                <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                                <%if(ele.type!='1'){%>
                                                                                                                    <span><%=ele.sugarText%></span>
                                                                                                                    <%}%>
                                                                                            </p>
                                                                                            <ul class="addSugarTxt fl">
                                                                                                <li>
                                                                                                    <%=ele.remark?ele.remark:''%>
                                                                                                </li>
                                                                                            </ul>
                                                                                        </li>
                                                                                        <%})%>
                                                                                </ul>
                                                                            </div>
                                                                        </div>
                                                                        <%}else if(e.tests[0].type==2){%>
                                                                            <span>拒测</span>
                                                                            <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                            <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                            <div class="addSugarDisplayMask">
                                                                                <div class="addSugarDisplay ">
                                                                                    <ul>
                                                                                        <%_.each(e.tests,function(ele,j){%>
                                                                                            <li class="clearfix">
                                                                                                <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                    <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                    <span><%=ele.sugarText%></span>
                                                                                                </p>
                                                                                                <ul class="addSugarTxt fl">
                                                                                                    <li>
                                                                                                        <%=ele.remark?ele.remark:''%>
                                                                                                    </li>
                                                                                                </ul>
                                                                                            </li>
                                                                                            <%})%>
                                                                                    </ul>
                                                                                </div>
                                                                            </div>
                                                                            <%}else if(e.tests[0].type==3){%>
                                                                                <span>外出</span>
                                                                                <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                                <div class="addSugarDisplayMask">
                                                                                    <div class="addSugarDisplay ">
                                                                                        <ul>
                                                                                            <%_.each(e.tests,function(ele,j){%>
                                                                                                <li class="clearfix">
                                                                                                    <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                        <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                        <span><%=ele.sugarText%></span>
                                                                                                    </p>
                                                                                                    <ul class="addSugarTxt fl">
                                                                                                        <li>
                                                                                                            <%=ele.remark?ele.remark:''%>
                                                                                                        </li>
                                                                                                    </ul>
                                                                                                </li>
                                                                                                <%})%>
                                                                                        </ul>
                                                                                    </div>
                                                                                </div>
                                                                                <%}else if(e.tests[0].type==4){%>
                                                                                    <span>进食</span>
                                                                                    <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                    <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                                    <div class="addSugarDisplayMask">
                                                                                        <div class="addSugarDisplay ">
                                                                                            <ul>
                                                                                                <%_.each(e.tests,function(ele,j){%>
                                                                                                    <li class="clearfix">
                                                                                                        <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                            <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                            <span><%=ele.sugarText%></span>
                                                                                                        </p>
                                                                                                        <ul class="addSugarTxt fl">
                                                                                                            <li>
                                                                                                                <%=ele.remark?ele.remark:''%>
                                                                                                            </li>
                                                                                                        </ul>
                                                                                                    </li>
                                                                                                    <%})%>
                                                                                            </ul>
                                                                                        </div>
                                                                                    </div>
                                                                                    <%}else if(e.tests[0].type==5){%>
                                                                                        <span>检查</span>
                                                                                        <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                        <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                                        <div class="addSugarDisplayMask">
                                                                                            <div class="addSugarDisplay ">
                                                                                                <ul>
                                                                                                    <%_.each(e.tests,function(ele,j){%>
                                                                                                        <li class="clearfix">
                                                                                                            <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                                <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                                <span><%=ele.sugarText%></span>
                                                                                                            </p>
                                                                                                            <ul class="addSugarTxt fl">
                                                                                                                <li>
                                                                                                                    <%=ele.remark?ele.remark:''%>
                                                                                                                </li>
                                                                                                            </ul>
                                                                                                        </li>
                                                                                                        <%})%>
                                                                                                </ul>
                                                                                            </div>
                                                                                        </div>
                                                                                        <%}else if(e.tests[0].type==6){%>
                                                                                            <span>其他</span>
                                                                                            <%}%>
                                                                                                <%}%>
                                                                                                    <%})%>
                                                        </td>

                                                        <td class="td2">
                                                            <%_.each(e.timeTypeSugars,function(e,i){%>
                                                                <%if(e.timeType==5){%>
                                                                    <%if(e.tests[0].type==1){%>
                                                                        <p testId="<%=e.tests[0].testId%>" class="<%print(e.tests[0].imei=='system'?'addHand':'')%>" sugar="<%=e.tests[0].sugar%>" timeType="<%=e.tests[0].timeType%>" timeTypeName="<%=e.tests[0].timeTypeName%>" createTime="<%print(e.tests[0].createTime?e.tests[0].createTime:'')%>">
                                                                            <%var sugar=parseFloat(e.tests[0].sugar)%>
                                                                                <%if(sugar<e.text[4].minValue){%>
                                                                                    <span style="color:#edb344;"><%=sugar%></span>
                                                                                    <%}else if(sugar>e.text[4].maxValue){%>
                                                                                        <span style="color:#e95959;"><%=sugar%></span>
                                                                                        <%}else{%>
                                                                                            <span><%=sugar%></span>
                                                                                            <%}%>
                                                                                                <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                                <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                        </p>
                                                                        <div class="addSugarDisplayMask">
                                                                            <div class="addSugarDisplay ">
                                                                                <ul>
                                                                                    <%_.each(e.tests,function(ele,j){%>
                                                                                        <li class="clearfix">
                                                                                            <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                <%if(ele.sugar<e.text[4].minValue){%>
                                                                                                    <span style="color:#edb344;"><%=ele.sugar%></span>
                                                                                                    <%}else if(ele.sugar>e.text[4].maxValue){%>
                                                                                                        <span style="color:#e95959;"><%=ele.sugar%></span>
                                                                                                        <%}else{%>
                                                                                                            <span><%=ele.sugar%></span>
                                                                                                            <%}%>
                                                                                                                <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                                <%if(ele.type!='1'){%>
                                                                                                                    <span><%=ele.sugarText%></span>
                                                                                                                    <%}%>
                                                                                            </p>
                                                                                            <ul class="addSugarTxt fl">
                                                                                                <li>
                                                                                                    <%=ele.remark?ele.remark:''%>
                                                                                                </li>
                                                                                            </ul>
                                                                                        </li>
                                                                                        <%})%>
                                                                                </ul>
                                                                            </div>
                                                                        </div>
                                                                        <%}else if(e.tests[0].type==2){%>
                                                                            <span>拒测</span>
                                                                            <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                            <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                            <div class="addSugarDisplayMask">
                                                                                <div class="addSugarDisplay ">
                                                                                    <ul>
                                                                                        <%_.each(e.tests,function(ele,j){%>
                                                                                            <li class="clearfix">
                                                                                                <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                    <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                    <span><%=ele.sugarText%></span>
                                                                                                </p>
                                                                                                <ul class="addSugarTxt fl">
                                                                                                    <li>
                                                                                                        <%=ele.remark?ele.remark:''%>
                                                                                                    </li>
                                                                                                </ul>
                                                                                            </li>
                                                                                            <%})%>
                                                                                    </ul>
                                                                                </div>
                                                                            </div>
                                                                            <%}else if(e.tests[0].type==3){%>
                                                                                <span>外出</span>
                                                                                <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                                <div class="addSugarDisplayMask">
                                                                                    <div class="addSugarDisplay ">
                                                                                        <ul>
                                                                                            <%_.each(e.tests,function(ele,j){%>
                                                                                                <li class="clearfix">
                                                                                                    <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                        <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                        <span><%=ele.sugarText%></span>
                                                                                                    </p>
                                                                                                    <ul class="addSugarTxt fl">
                                                                                                        <li>
                                                                                                            <%=ele.remark?ele.remark:''%>
                                                                                                        </li>
                                                                                                    </ul>
                                                                                                </li>
                                                                                                <%})%>
                                                                                        </ul>
                                                                                    </div>
                                                                                </div>
                                                                                <%}else if(e.tests[0].type==4){%>
                                                                                    <span>进食</span>
                                                                                    <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                    <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                                    <div class="addSugarDisplayMask">
                                                                                        <div class="addSugarDisplay ">
                                                                                            <ul>
                                                                                                <%_.each(e.tests,function(ele,j){%>
                                                                                                    <li class="clearfix">
                                                                                                        <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                            <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                            <span><%=ele.sugarText%></span>
                                                                                                        </p>
                                                                                                        <ul class="addSugarTxt fl">
                                                                                                            <li>
                                                                                                                <%=ele.remark?ele.remark:''%>
                                                                                                            </li>
                                                                                                        </ul>
                                                                                                    </li>
                                                                                                    <%})%>
                                                                                            </ul>
                                                                                        </div>
                                                                                    </div>
                                                                                    <%}else if(e.tests[0].type==5){%>
                                                                                        <span>检查</span>
                                                                                        <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                        <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                                        <div class="addSugarDisplayMask">
                                                                                            <div class="addSugarDisplay ">
                                                                                                <ul>
                                                                                                    <%_.each(e.tests,function(ele,j){%>
                                                                                                        <li class="clearfix">
                                                                                                            <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                                <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                                <span><%=ele.sugarText%></span>
                                                                                                            </p>
                                                                                                            <ul class="addSugarTxt fl">
                                                                                                                <li>
                                                                                                                    <%=ele.remark?ele.remark:''%>
                                                                                                                </li>
                                                                                                            </ul>
                                                                                                        </li>
                                                                                                        <%})%>
                                                                                                </ul>
                                                                                            </div>
                                                                                        </div>
                                                                                        <%}else if(e.tests[0].type==6){%>
                                                                                            <span>其他</span>
                                                                                            <%}%>
                                                                                                <%}%>
                                                                                                    <%})%>
                                                        </td>

                                                        <td class="td2">
                                                            <%_.each(e.timeTypeSugars,function(e,i){%>
                                                                <%if(e.timeType==6){%>
                                                                    <%if(e.tests[0].type==1){%>
                                                                        <p testId="<%=e.tests[0].testId%>" class="<%print(e.tests[0].imei=='system'?'addHand':'')%>" sugar="<%=e.tests[0].sugar%>" timeType="<%=e.tests[0].timeType%>" timeTypeName="<%=e.tests[0].timeTypeName%>" createTime="<%print(e.tests[0].createTime?e.tests[0].createTime:'')%>">
                                                                            <%var sugar=parseFloat(e.tests[0].sugar)%>
                                                                                <%if(sugar<e.text[5].minValue){%>
                                                                                    <span style="color:#edb344;"><%=sugar%></span>
                                                                                    <%}else if(sugar>e.text[5].maxValue){%>
                                                                                        <span style="color:#e95959;"><%=sugar%></span>
                                                                                        <%}else{%>
                                                                                            <span><%=sugar%></span>
                                                                                            <%}%>
                                                                                                <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                                <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                        </p>
                                                                        <div class="addSugarDisplayMask">
                                                                            <div class="addSugarDisplay ">
                                                                                <ul>
                                                                                    <%_.each(e.tests,function(ele,j){%>
                                                                                        <li class="clearfix">
                                                                                            <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                <%if(ele.sugar<e.text[5].minValue){%>
                                                                                                    <span style="color:#edb344;"><%=ele.sugar%></span>
                                                                                                    <%}else if(ele.sugar>e.text[5].maxValue){%>
                                                                                                        <span style="color:#e95959;"><%=ele.sugar%></span>
                                                                                                        <%}else{%>
                                                                                                            <span><%=ele.sugar%></span>
                                                                                                            <%}%>
                                                                                                                <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                                <%if(ele.type!='1'){%>
                                                                                                                    <span><%=ele.sugarText%></span>
                                                                                                                    <%}%>
                                                                                            </p>
                                                                                            <ul class="addSugarTxt fl">
                                                                                                <li>
                                                                                                    <%=ele.remark?ele.remark:''%>
                                                                                                </li>
                                                                                            </ul>
                                                                                        </li>
                                                                                        <%})%>
                                                                                </ul>
                                                                            </div>
                                                                        </div>
                                                                        <%}else if(e.tests[0].type==2){%>
                                                                            <span>拒测</span>
                                                                            <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                            <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                            <div class="addSugarDisplayMask">
                                                                                <div class="addSugarDisplay ">
                                                                                    <ul>
                                                                                        <%_.each(e.tests,function(ele,j){%>
                                                                                            <li class="clearfix">
                                                                                                <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                    <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                    <span><%=ele.sugarText%></span>
                                                                                                </p>
                                                                                                <ul class="addSugarTxt fl">
                                                                                                    <li>
                                                                                                        <%=ele.remark?ele.remark:''%>
                                                                                                    </li>
                                                                                                </ul>
                                                                                            </li>
                                                                                            <%})%>
                                                                                    </ul>
                                                                                </div>
                                                                            </div>
                                                                            <%}else if(e.tests[0].type==3){%>
                                                                                <span>外出</span>
                                                                                <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                                <div class="addSugarDisplayMask">
                                                                                    <div class="addSugarDisplay ">
                                                                                        <ul>
                                                                                            <%_.each(e.tests,function(ele,j){%>
                                                                                                <li class="clearfix">
                                                                                                    <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                        <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                        <span><%=ele.sugarText%></span>
                                                                                                    </p>
                                                                                                    <ul class="addSugarTxt fl">
                                                                                                        <li>
                                                                                                            <%=ele.remark?ele.remark:''%>
                                                                                                        </li>
                                                                                                    </ul>
                                                                                                </li>
                                                                                                <%})%>
                                                                                        </ul>
                                                                                    </div>
                                                                                </div>
                                                                                <%}else if(e.tests[0].type==4){%>
                                                                                    <span>进食</span>
                                                                                    <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                    <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                                    <div class="addSugarDisplayMask">
                                                                                        <div class="addSugarDisplay ">
                                                                                            <ul>
                                                                                                <%_.each(e.tests,function(ele,j){%>
                                                                                                    <li class="clearfix">
                                                                                                        <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                            <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                            <span><%=ele.sugarText%></span>
                                                                                                        </p>
                                                                                                        <ul class="addSugarTxt fl">
                                                                                                            <li>
                                                                                                                <%=ele.remark?ele.remark:''%>
                                                                                                            </li>
                                                                                                        </ul>
                                                                                                    </li>
                                                                                                    <%})%>
                                                                                            </ul>
                                                                                        </div>
                                                                                    </div>
                                                                                    <%}else if(e.tests[0].type==5){%>
                                                                                        <span>检查</span>
                                                                                        <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                        <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                                        <div class="addSugarDisplayMask">
                                                                                            <div class="addSugarDisplay ">
                                                                                                <ul>
                                                                                                    <%_.each(e.tests,function(ele,j){%>
                                                                                                        <li class="clearfix">
                                                                                                            <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                                <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                                <span><%=ele.sugarText%></span>
                                                                                                            </p>
                                                                                                            <ul class="addSugarTxt fl">
                                                                                                                <li>
                                                                                                                    <%=ele.remark?ele.remark:''%>
                                                                                                                </li>
                                                                                                            </ul>
                                                                                                        </li>
                                                                                                        <%})%>
                                                                                                </ul>
                                                                                            </div>
                                                                                        </div>
                                                                                        <%}else if(e.tests[0].type==6){%>
                                                                                            <span>其他</span>
                                                                                            <%}%>
                                                                                                <%}%>
                                                                                                    <%})%>
                                                        </td>

                                                        <td class="td2">
                                                            <%_.each(e.timeTypeSugars,function(e,i){%>
                                                                <%if(e.timeType==7){%>
                                                                    <%if(e.tests[0].type==1){%>
                                                                        <p testId="<%=e.tests[0].testId%>" class="<%print(e.tests[0].imei=='system'?'addHand':'')%>" sugar="<%=e.tests[0].sugar%>" timeType="<%=e.tests[0].timeType%>" timeTypeName="<%=e.tests[0].timeTypeName%>" createTime="<%print(e.tests[0].createTime?e.tests[0].createTime:'')%>">
                                                                            <%var sugar=parseFloat(e.tests[0].sugar)%>
                                                                                <%if(sugar<e.text[6].minValue){%>
                                                                                    <span style="color:#edb344;"><%=sugar%></span>
                                                                                    <%}else if(sugar>e.text[6].maxValue){%>
                                                                                        <span style="color:#e95959;"><%=sugar%></span>
                                                                                        <%}else{%>
                                                                                            <span><%=sugar%></span>
                                                                                            <%}%>
                                                                                                <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                                <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                        </p>
                                                                        <div class="addSugarDisplayMask">
                                                                            <div class="addSugarDisplay ">
                                                                                <ul>
                                                                                    <%_.each(e.tests,function(ele,j){%>
                                                                                        <li class="clearfix">
                                                                                            <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                <%if(ele.sugar<e.text[6].minValue){%>
                                                                                                    <span style="color:#edb344;"><%=ele.sugar%></span>
                                                                                                    <%}else if(ele.sugar>e.text[6].maxValue){%>
                                                                                                        <span style="color:#e95959;"><%=ele.sugar%></span>
                                                                                                        <%}else{%>
                                                                                                            <span><%=ele.sugar%></span>
                                                                                                            <%}%>
                                                                                                                <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                                <%if(ele.type!='1'){%>
                                                                                                                    <span><%=ele.sugarText%></span>
                                                                                                                    <%}%>
                                                                                            </p>
                                                                                            <ul class="addSugarTxt fl">
                                                                                                <li>
                                                                                                    <%=ele.remark?ele.remark:''%>
                                                                                                </li>
                                                                                            </ul>
                                                                                        </li>
                                                                                        <%})%>
                                                                                </ul>
                                                                            </div>
                                                                        </div>
                                                                        <%}else if(e.tests[0].type==2){%>
                                                                            <span>拒测</span>
                                                                            <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                            <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                            <div class="addSugarDisplayMask">
                                                                                <div class="addSugarDisplay ">
                                                                                    <ul>
                                                                                        <%_.each(e.tests,function(ele,j){%>
                                                                                            <li class="clearfix">
                                                                                                <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                    <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                    <span><%=ele.sugarText%></span>
                                                                                                </p>
                                                                                                <ul class="addSugarTxt fl">
                                                                                                    <li>
                                                                                                        <%=ele.remark?ele.remark:''%>
                                                                                                    </li>
                                                                                                </ul>
                                                                                            </li>
                                                                                            <%})%>
                                                                                    </ul>
                                                                                </div>
                                                                            </div>
                                                                            <%}else if(e.tests[0].type==3){%>
                                                                                <span>外出</span>
                                                                                <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                                <div class="addSugarDisplayMask">
                                                                                    <div class="addSugarDisplay ">
                                                                                        <ul>
                                                                                            <%_.each(e.tests,function(ele,j){%>
                                                                                                <li class="clearfix">
                                                                                                    <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                        <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                        <span><%=ele.sugarText%></span>
                                                                                                    </p>
                                                                                                    <ul class="addSugarTxt fl">
                                                                                                        <li>
                                                                                                            <%=ele.remark?ele.remark:''%>
                                                                                                        </li>
                                                                                                    </ul>
                                                                                                </li>
                                                                                                <%})%>
                                                                                        </ul>
                                                                                    </div>
                                                                                </div>
                                                                                <%}else if(e.tests[0].type==4){%>
                                                                                    <span>进食</span>
                                                                                    <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                    <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                                    <div class="addSugarDisplayMask">
                                                                                        <div class="addSugarDisplay ">
                                                                                            <ul>
                                                                                                <%_.each(e.tests,function(ele,j){%>
                                                                                                    <li class="clearfix">
                                                                                                        <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                            <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                            <span><%=ele.sugarText%></span>
                                                                                                        </p>
                                                                                                        <ul class="addSugarTxt fl">
                                                                                                            <li>
                                                                                                                <%=ele.remark?ele.remark:''%>
                                                                                                            </li>
                                                                                                        </ul>
                                                                                                    </li>
                                                                                                    <%})%>
                                                                                            </ul>
                                                                                        </div>
                                                                                    </div>
                                                                                    <%}else if(e.tests[0].type==5){%>
                                                                                        <span>检查</span>
                                                                                        <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                        <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                                        <div class="addSugarDisplayMask">
                                                                                            <div class="addSugarDisplay ">
                                                                                                <ul>
                                                                                                    <%_.each(e.tests,function(ele,j){%>
                                                                                                        <li class="clearfix">
                                                                                                            <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                                <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                                <span><%=ele.sugarText%></span>
                                                                                                            </p>
                                                                                                            <ul class="addSugarTxt fl">
                                                                                                                <li>
                                                                                                                    <%=ele.remark?ele.remark:''%>
                                                                                                                </li>
                                                                                                            </ul>
                                                                                                        </li>
                                                                                                        <%})%>
                                                                                                </ul>
                                                                                            </div>
                                                                                        </div>
                                                                                        <%}else if(e.tests[0].type==6){%>
                                                                                            <span>其他</span>
                                                                                            <%}%>
                                                                                                <%}%>
                                                                                                    <%})%>
                                                        </td>

                                                        <td class="td2">
                                                            <%_.each(e.timeTypeSugars,function(e,i){%>
                                                                <%if(e.timeType==8){%>
                                                                    <%if(e.tests[0].type==1){%>
                                                                        <p testId="<%=e.tests[0].testId%>" class="<%print(e.tests[0].imei=='system'?'addHand':'')%>" sugar="<%=e.tests[0].sugar%>" timeType="<%=e.tests[0].timeType%>" timeTypeName="<%=e.tests[0].timeTypeName%>" createTime="<%print(e.tests[0].createTime?e.tests[0].createTime:'')%>">
                                                                            <%var sugar=parseFloat(e.tests[0].sugar)%>
                                                                                <%if(sugar<e.text[7].minValue){%>
                                                                                    <span style="color:#edb344;"><%=sugar%></span>
                                                                                    <%}else if(sugar>e.text[7].maxValue){%>
                                                                                        <span style="color:#e95959;"><%=sugar%></span>
                                                                                        <%}else{%>
                                                                                            <span><%=sugar%></span>
                                                                                            <%}%>
                                                                                                <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                                <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                        </p>
                                                                        <div class="addSugarDisplayMask">
                                                                            <div class="addSugarDisplay ">
                                                                                <ul>
                                                                                    <%_.each(e.tests,function(ele,j){%>
                                                                                        <li class="clearfix">
                                                                                            <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                <%if(ele.sugar<e.text[7].minValue){%>
                                                                                                    <span style="color:#edb344;"><%=ele.sugar%></span>
                                                                                                    <%}else if(ele.sugar>e.text[7].maxValue){%>
                                                                                                        <span style="color:#e95959;"><%=ele.sugar%></span>
                                                                                                        <%}else{%>
                                                                                                            <span><%=ele.sugar%></span>
                                                                                                            <%}%>
                                                                                                                <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                                <%if(ele.type!='1'){%>
                                                                                                                    <span><%=ele.sugarText%></span>
                                                                                                                    <%}%>
                                                                                            </p>
                                                                                            <ul class="addSugarTxt fl">
                                                                                                <li>
                                                                                                    <%=ele.remark?ele.remark:''%>
                                                                                                </li>
                                                                                            </ul>
                                                                                        </li>
                                                                                        <%})%>
                                                                                </ul>
                                                                            </div>
                                                                        </div>
                                                                        <%}else if(e.tests[0].type==2){%>
                                                                            <span>拒测</span>
                                                                            <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                            <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                            <div class="addSugarDisplayMask">
                                                                                <div class="addSugarDisplay ">
                                                                                    <ul>
                                                                                        <%_.each(e.tests,function(ele,j){%>
                                                                                            <li class="clearfix">
                                                                                                <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                    <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                    <span><%=ele.sugarText%></span>
                                                                                                </p>
                                                                                                <ul class="addSugarTxt fl">
                                                                                                    <li>
                                                                                                        <%=ele.remark?ele.remark:''%>
                                                                                                    </li>
                                                                                                </ul>
                                                                                            </li>
                                                                                            <%})%>
                                                                                    </ul>
                                                                                </div>
                                                                            </div>
                                                                            <%}else if(e.tests[0].type==3){%>
                                                                                <span>外出</span>
                                                                                <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                                <div class="addSugarDisplayMask">
                                                                                    <div class="addSugarDisplay ">
                                                                                        <ul>
                                                                                            <%_.each(e.tests,function(ele,j){%>
                                                                                                <li class="clearfix">
                                                                                                    <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                        <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                        <span><%=ele.sugarText%></span>
                                                                                                    </p>
                                                                                                    <ul class="addSugarTxt fl">
                                                                                                        <li>
                                                                                                            <%=ele.remark?ele.remark:''%>
                                                                                                        </li>
                                                                                                    </ul>
                                                                                                </li>
                                                                                                <%})%>
                                                                                        </ul>
                                                                                    </div>
                                                                                </div>
                                                                                <%}else if(e.tests[0].type==4){%>
                                                                                    <span>进食</span>
                                                                                    <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                    <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                                    <div class="addSugarDisplayMask">
                                                                                        <div class="addSugarDisplay ">
                                                                                            <ul>
                                                                                                <%_.each(e.tests,function(ele,j){%>
                                                                                                    <li class="clearfix">
                                                                                                        <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                            <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                            <span><%=ele.sugarText%></span>
                                                                                                        </p>
                                                                                                        <ul class="addSugarTxt fl">
                                                                                                            <li>
                                                                                                                <%=ele.remark?ele.remark:''%>
                                                                                                            </li>
                                                                                                        </ul>
                                                                                                    </li>
                                                                                                    <%})%>
                                                                                            </ul>
                                                                                        </div>
                                                                                    </div>
                                                                                    <%}else if(e.tests[0].type==5){%>
                                                                                        <span>检查</span>
                                                                                        <b class="<%print(e.tests[0].imei=='system'?'handImg':'')%>"></b>
                                                                                        <i class="<%print(e.tests.length>1?'handTriangle':'')%>"></i>
                                                                                        <div class="addSugarDisplayMask">
                                                                                            <div class="addSugarDisplay ">
                                                                                                <ul>
                                                                                                    <%_.each(e.tests,function(ele,j){%>
                                                                                                        <li class="clearfix">
                                                                                                            <p class="addSugarTitle fl <%print(ele.imei=='system'?'addHand':'')%>" testId="<%=ele.testId%>" timeType="<%=ele.timeType%>" timeTypeName="<%=ele.timeTypeName%>" createTime="<%print(ele.createTime?ele.createTime:'')%>">
                                                                                                                <b class="<%print(ele.imei=='system'?'handImg':'')%>"></b>
                                                                                                                <span><%=ele.sugarText%></span>
                                                                                                            </p>
                                                                                                            <ul class="addSugarTxt fl">
                                                                                                                <li>
                                                                                                                    <%=ele.remark?ele.remark:''%>
                                                                                                                </li>
                                                                                                            </ul>
                                                                                                        </li>
                                                                                                        <%})%>
                                                                                                </ul>
                                                                                            </div>
                                                                                        </div>
                                                                                        <%}else if(e.tests[0].type==6){%>
                                                                                            <span>其他</span>
                                                                                            <%}%>
                                                                                                <%}%>
                                                                                                    <%})%>
                                                        </td>

                                                    </tr>
                                                    <%})%>
                                            </script>

                                        </tbody>
                                    </table>
                                    <div class="page"></div>
                                </div>

                                <!--时间-->
                                <div id="table-vertical" class="hideItem">
                                    <div id="positionLeft"></div>
                                    <div class="thead">
                                        <div class="td">日期</div>
                                        <div class="td">7:00-9:00</div>
                                        <div class="td">10:00-12:00</div>
                                        <div class="td">13:00-15:00</div>
                                        <div class="td">16:00-18:00</div>
                                        <div class="td">19:00-21:00</div>
                                        <div class="td">22:00-00:00</div>
                                        <div class="td">1:00-3:00</div>
                                        <div class="td">4:00-6:00</div>
                                    </div>
                                    <div class="tbody">
                                        <script type="text/template" id="table-vertical-template">
                                            <%_.each(obj,function(e,i){%>
                                                <div class="tr-time">
                                                    <div class="td-time">
                                                        <div class="tr td-day">
                                                            <%=e.createTime.split(' ')[0]%>
                                                        </div>
                                                    </div>
                                                    <%_.each(e.allList,function(ele,j){%>
                                                        <div class="td-time">
                                                            <%_.each(ele,function(dom,k){%>
                                                                <%if(k<5){%>
                                                                    <div class="tr">
                                                                        <div class="txt">
                                                                            <span><%=((dom.createTime&&dom.createTime.split(' ')[0]!='0000-00-00')?dom.createTime.split(' ')[1].slice(0,5):'')%></span>
                                                                            <span>
                                                                                    <%if(dom.type==1){%>
                                                                                        <%if(dom.sugar<4.4){%><b style="color:#edb344"><%=dom.sugar%></b>
                                                                                        <%}else if((dom.timeType==1 || dom.timeType==8)&&(dom.sugar>7)){%><b style="color:#e95959"><%=dom.sugar%></b>
                                                                                        <%}else if(dom.sugar>10){%><b style="color:#e95959"><%=dom.sugar%></b>
                                                                                        <%}else{%><b><%=dom.sugar%></b><%}%> 
                                                                                    <%}else if(dom.type==2){%>
                                                                                        <b>拒测</b>
                                                                                    <%}else if(dom.type==3){%>
                                                                                        <b>外出</b>
                                                                                    <%}else if(dom.type==4){%>
                                                                                        <b>进食</b>
                                                                                    <%}else if(dom.type==5){%>
                                                                                        <b>检查</b>
                                                                                    <%}%>
													</span>
                                                                        </div>
                                                                        <%if(dom.remark){%>
                                                                            <div class="showmore-remark scrollBar">
                                                                                <%=dom.remark%>
                                                                            </div>
                                                                            <%}%>
                                                                    </div>
                                                                    <%}%>
                                                                        <%if(k==5){%>
                                                                            <div class="tr <%=ele.length>6?'lastTr':''%>">
                                                                                <div class="txt">
                                                                                    <span><%=((dom.createTime&&dom.createTime.split(' ')[0]!='0000-00-00')?dom.createTime.split(' ')[1].slice(0,5):'')%></span>
                                                                                    <span>
                                                                                            <%if(dom.type==1){%>
                                                                                                <%if(dom.sugar<4.4){%><b style="color:#edb344"><%=dom.sugar%></b>
                                                                                                <%}else if((dom.timeType==1 || dom.timeType==8)&&(dom.sugar>7)){%><b style="color:#e95959"><%=dom.sugar%></b>
                                                                                                <%}else if(dom.sugar>10){%><b style="color:#e95959"><%=dom.sugar%></b>
                                                                                                <%}else{%><b><%=dom.sugar%></b><%}%> 
                                                                                            <%}else if(dom.type==2){%>
                                                                                                <b>拒测</b>
                                                                                            <%}else if(dom.type==3){%>
                                                                                                <b>外出</b>
                                                                                            <%}else if(dom.type==4){%>
                                                                                                <b>进食</b>
                                                                                            <%}else if(dom.type==5){%>
                                                                                                <b>检查</b>
                                                                                            <%}%>
													</span>
                                                                                </div>
                                                                                <%if(ele.length>6){%>
                                                                                    <div class="showmore scrollBar">
                                                                                        <ul>
                                                                                            <%_.each(ele,function(dom2,k2){%>
                                                                                                <%if(k2>=5){%>
                                                                                                    <li>
                                                                                                        <div class="timeshow">
                                                                                                            <span><%=((dom2.createTime&&dom2.createTime.split(' ')[0]!='0000-00-00')?dom2.createTime.split(' ')[1].slice(0,5):'')%></span>
                                                                                                            <span>
                                                                                                                    <%if(dom.type==1){%>
                                                                                                                        <%if(dom.sugar<4.4){%><b style="color:#edb344"><%=dom.sugar%></b>
                                                                                                                        <%}else if((dom.timeType==1 || dom.timeType==8)&&(dom.sugar>7)){%><b style="color:#e95959"><%=dom.sugar%></b>
                                                                                                                        <%}else if(dom.sugar>10){%><b style="color:#e95959"><%=dom.sugar%></b>
                                                                                                                        <%}else{%><b><%=dom.sugar%></b><%}%> 
                                                                                                                    <%}else if(dom.type==2){%>
                                                                                                                        <b>拒测</b>
                                                                                                                    <%}else if(dom.type==3){%>
                                                                                                                        <b>外出</b>
                                                                                                                    <%}else if(dom.type==4){%>
                                                                                                                        <b>进食</b>
                                                                                                                    <%}else if(dom.type==5){%>
                                                                                                                        <b>检查</b>
                                                                                                                    <%}%>
																</span>
                                                                                                        </div>
                                                                                                        <%if(dom2.remark){%>
                                                                                                            <div class="remark">
                                                                                                                <%=dom2.remark%>
                                                                                                            </div>
                                                                                                            <%}%>
                                                                                                    </li>
                                                                                                    <%}%>
                                                                                                        <%})%>
                                                                                        </ul>
                                                                                    </div>
                                                                                    <%}%>
                                                                            </div>
                                                                            <%}%>
                                                                                <%})%>
                                                        </div>
                                                        <%})%>
                                                </div>
                                                <%})%>
                                        </script>
                                    </div>
                                    <div class="page"></div>
                                </div>
                            </div>

                            <ul class="dataDisplay clearfix">
                                <li class="dataLeft fl clearfix">
                                    <div class="dataMin dataBox fl">
                                        <p class="sup">最低</p>
                                        <p class="dataNum" id="sugarMin"></p>
                                        <p class="unit">mmol/L</p>
                                        <i class="line"></i>
                                    </div>
                                    <div class="dataMax dataBox fl">
                                        <p class="sup">最高</p>
                                        <p class="dataNum" id="sugarMax"></p>
                                        <p class="unit">mmol/L</p>
                                        <i class="line"></i>
                                    </div>
                                    <div class="dataCount dataBox fl">
                                        <p class="sup">总数</p>
                                        <p class="dataNum" id="sugarCount"></p>
                                        <p class="unit">次</p>
                                        <i class="line"></i>
                                    </div>
                                </li>
                                <li class="dataMid fl clearfix">
                                    <div class="dataPieChart fl" id="patientInfoPieChart"></div>
                                    <div class="pieChartLegend fl" id="">
                                        <ul class="dataTotal">
                                            <li class="">
                                                <span class="sugarFlag high">高血糖</span>
                                                <span class="count" id="hightLeft"><i></i> 次</span>
                                            </li>
                                            <li>
                                                <span class="sugarFlag normal">正常血糖</span>
                                                <span class="count" id="norLeft"><i></i> 次</span>
                                            </li>
                                            <li>
                                                <span class="sugarFlag low">低血糖</span>
                                                <span class="count" id="lowLeft"><i></i> 次</span>
                                            </li>
                                        </ul>
                                    </div>
                                    <i class="line"></i>
                                </li>
                                <li class="dataRight fl">
                                    <div class="dataBarChart" id="patientInfoBarChart"></div>
                                </li>
                            </ul>
                        </div>
                        <!--血糖测量数据分析-->
                        <div class="sugarTestAnalyse">
                            <div class="analyseTitle">
                                血糖测量数据分析
                            </div>
                            <div class="timeSelect clearfix" id="patientInfosugarTestAnalyse">
                                <p class="fl">单位：mmol/L</p>
                                <ul class="fr">
                                    <li class="fl timeBtn" data-time="1"><a class="bg_sel" href="javascript:void(0)">最近一周</a></li>
                                    <li class="fl timeBtn" data-time="2"><a href="javascript:void(0)">最近1个月</a></li>
                                    <li class="fl timeBtn" data-time="3"><a href="javascript:void(0)">最近3个月</a></li>
                                    <li class="fl timeBtn" data-time="4"><a href="javascript:void(0)">全部</a></li>
                                    <li class="fl timeSlot select_box itemSelct">
                                        <input type="button" value="空腹" data-value="1" class="select_txt timeSel-sugarStatus" id="timeSel-sugarStatus" readonly/>
                                        <div class="triangle"></div>
                                        <div class="option_box">
                                            <a data-value="1">空腹</a>
                                            <a data-value="2">早餐后</a>
                                            <a data-value="3">午餐前</a>
                                            <a data-value="4">午餐后</a>
                                            <a data-value="5">晚餐前</a>
                                            <a data-value="6">晚餐后</a>
                                            <a data-value="7">睡前</a>
                                            <a data-value="8">凌晨</a>
                                        </div>


                                    </li>
                                </ul>
                            </div>
                            <div id="patientInfoLineChart" style="width: 100%;height:368px;"></div>
                        </div>
                        <!--血糖统计-->
                        <div class="sugarTotal">
                            <div class="analyseTitle">
                                血糖统计
                            </div>
                            <div class="timeSelect clearfix" id="sugarTotal">
                                <ul class="fr">
                                    <li class="fl timeBtn" data-time="1"><a class="bg_sel " href="javascript:void(0)">最近一周</a></li>
                                    <li class="fl timeBtn" data-time="2"><a href="javascript:void(0)">最近一个月</a></li>
                                    <li class="fl timeBtn" data-time="3"><a href="javascript:void(0)">最近3个月</a></li>
                                    <li class="fl timeBtn" data-time="4"><a href="javascript:void(0)">全部</a></li>
                                </ul>
                            </div>
                            <!--表格-->
                            <div class="patientList2">
                                <table class="list" cellspacing="0" cellpadding="0">
                                    <thead>
                                        <tr>
                                            <td class="td1">类型</td>
                                            <td class="td2">空腹</td>
                                            <td class="td2">早餐后</td>
                                            <td class="td2">午餐前</td>
                                            <td class="td2">午餐后</td>
                                            <td class="td2">晚餐前</td>
                                            <td class="td2">晚餐后</td>
                                            <td class="td2">睡前</td>
                                            <td class="td2">凌晨</td>
                                        </tr>
                                    </thead>
                                    <tbody class="page1">
                                        <script type="text/template" id="sugarTotal-list-template">
                                            <%_.each(obj,function(e,i){%>
                                                <tr>
                                                    <%if(e[0]=='highestName'||e[0]=='lowestName'){%>
                                                        <td class="td1">
                                                            <%if(e[0]=='highestName'){%>最高值(mmol/L)
                                                                <%}else{%>最低值(mmol/L)
                                                                    <%}%>
                                                        </td>
                                                        <td class="td2">
                                                            <%if(e[1]<4.4){%>
                                                                <span style="color:#edb344;"><%=e[1]%></span>
                                                                <%}else if(e[1]>7){%>
                                                                    <span style="color:#e95959;"><%=e[1]%></span>
                                                                    <%}else{%>
                                                                        <%=e[1]%>
                                                                            <%}%>
                                                        </td>
                                                        <td class="td2">
                                                            <%if(e[2]<4.4){%>
                                                                <span style="color:#edb344;"><%=e[2]%></span>
                                                                <%}else if(e[2]>10){%>
                                                                    <span style="color:#e95959;"><%=e[2]%></span>
                                                                    <%}else{%>
                                                                        <%=e[2]%>
                                                                            <%}%>
                                                        </td>
                                                        <td class="td2">
                                                            <%if(e[3]<4.4){%>
                                                                <span style="color:#edb344;"><%=e[3]%></span>
                                                                <%}else if(e[3]>10){%>
                                                                    <span style="color:#e95959;"><%=e[3]%></span>
                                                                    <%}else{%>
                                                                        <%=e[3]%>
                                                                            <%}%>
                                                        </td>
                                                        <td class="td2">
                                                            <%if(e[4]<4.4){%>
                                                                <span style="color:#edb344;"><%=e[4]%></span>
                                                                <%}else if(e[4]>10){%>
                                                                    <span style="color:#e95959;"><%=e[4]%></span>
                                                                    <%}else{%>
                                                                        <%=e[4]%>
                                                                            <%}%>
                                                        </td>
                                                        <td class="td2">
                                                            <%if(e[5]<4.4){%>
                                                                <span style="color:#edb344;"><%=e[5]%></span>
                                                                <%}else if(e[5]>10){%>
                                                                    <span style="color:#e95959;"><%=e[5]%></span>
                                                                    <%}else{%>
                                                                        <%=e[5]%>
                                                                            <%}%>
                                                        </td>
                                                        <td class="td2">
                                                            <%if(e[6]<4.4){%>
                                                                <span style="color:#edb344;"><%=e[6]%></span>
                                                                <%}else if(e[6]>10){%>
                                                                    <span style="color:#e95959;"><%=e[6]%></span>
                                                                    <%}else{%>
                                                                        <%=e[6]%>
                                                                            <%}%>
                                                        </td>
                                                        <td class="td2">
                                                            <%if(e[7]<4.4){%>
                                                                <span style="color:#edb344;"><%=e[7]%></span>
                                                                <%}else if(e[7]>10){%>
                                                                    <span style="color:#e95959;"><%=e[7]%></span>
                                                                    <%}else{%>
                                                                        <%=e[7]%>
                                                                            <%}%>
                                                        </td>
                                                        <td class="td2">
                                                            <%if(e[8]<4.4){%>
                                                                <span style="color:#edb344;"><%=e[8]%></span>
                                                                <%}else if(e[8]>7){%>
                                                                    <span style="color:#e95959;"><%=e[8]%></span>
                                                                    <%}else{%>
                                                                        <%=e[8]%>
                                                                            <%}%>
                                                        </td>
                                                        <%}else{%>
                                                            <td class="td2">
                                                                <%=e[0]%>
                                                            </td>
                                                            <td class="td2">
                                                                <%=e[1]%>
                                                            </td>
                                                            <td class="td2">
                                                                <%=e[2]%>
                                                            </td>
                                                            <td class="td2">
                                                                <%=e[3]%>
                                                            </td>
                                                            <td class="td2">
                                                                <%=e[4]%>
                                                            </td>
                                                            <td class="td2">
                                                                <%=e[5]%>
                                                            </td>
                                                            <td class="td2">
                                                                <%=e[6]%>
                                                            </td>
                                                            <td class="td2">
                                                                <%=e[7]%>
                                                            </td>
                                                            <td class="td2">
                                                                <%=e[8]%>
                                                            </td>
                                                            <%}%>
                                                </tr>
                                                <%})%>
                                        </script>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>

                <!--<div class="gestationKinds main-template-block hideItem">妊娠型</div>-->
                <!--<div class="otherKinds main-template-block hideItem">其他型</div>-->

            </div>
        </div>
    </div>


    <div class="PopMask">
        <!--修改密码弹窗-->
        <div class="updatePwdPop" id="updatePwdPop"></div>

        <!--添加患者的弹窗，编辑患者弹窗(住院号不能改)-->
        <div class="addPatientPop clearfix">
            <div class="title clearfix">
                <!--<p class="fl" id="addTitlePop">新增患者 (全部信息必填)</p>-->
                <p class="fl" id="addTitlePop">
                    <span>新增患者</span>
                    <b>("<i style='color:red;'>*</i>"为必填信息)</b>
                </p>
                <a class="fr" href="javascript:void(0)" id="closeAdd"></a>
            </div>
            <div class="clearfix addInfo">
                <div class="listBox clearfix">
                    <div class="item  fl">
                        <p>住院号：</p>
                        <input type="text" id="addHospitalizationNo">
                        <i class="need">*</i>
                    </div>
                    <div class="item fl">
                        <p>姓名：</p>
                        <input id="addUserName" type="text">
                        <i class="need">*</i>
                    </div>
                    <div class="item fl clearfix">
                        <p>性别：</p>
                        <div class="gender fl" id="addSex">
                            <label class="male"><input name="gender" type="radio" checked="checked" value="1"/>&nbsp;&nbsp;男
						</label>
                            <label class="female"><input name="gender" type="radio" value="2"/>&nbsp;&nbsp;女 </label>
                        </div>
                    </div>
                    <div class="item itemFirst fl">
                        <p>身份证号：</p>
                        <input type="text" id="addIdCard" maxlength="18" onblur="dateNo(this)">
                        <!--<i class="need">*</i>-->
                    </div>
                </div>

                <div class="listBox clearfix">
                    <div class="item fl">
                        <p>出生年月：</p>
                        <input readonly class="laydate-icon" id="addBirthday" onclick="laydate({elem:'#addBirthday',format: 'YYYY-MM-DD'})">
                        <i class="need">*</i>
                    </div>
                    <div class="item fl">
                        <p>身高(cm)：</p>
                        <input type="text" id="addHeight" />
                        <i class="need colorWhite">*</i>
                    </div>
                    <div class="item fl">
                        <p>体重(kg)：</p>
                        <input type="text" id="addWeight" />
                        <i class="need colorWhite">*</i>
                    </div>
                    <div class="item itemFirst fl">
                        <p>入院日期：</p>
                        <input readonly class="laydate-icon" id="addInHospitalNo" onclick="laydate({elem:'#addInHospitalNo',format: 'YYYY-MM-DD'})">
                        <i class="need">*</i>
                    </div>
                </div>

                <div class="listBox clearfix itemSelct">
                    <div class="item  fl clearfix">
                        <p>科室：</p>
                        <div class="select_box fl" id="infoDept">
                            <input type="text" value="" class="select_txt" id="addDeptId" readonly/>
                            <div class="triangle"></div>
                            <div class="option_box getOptionBox"></div>
                        </div>
                        <i class="need">*</i>
                    </div>
                    <div class="item fl clearfix itemSelct">
                        <p>主治医师：</p>
                        <div class="select_box fl" id="infoDoc">
                            <input type="text" value="" class="select_txt" id="addDoctorId" readonly/>
                            <div class="triangle"></div>
                            <div class="option_box getOptionBox"></div>
                        </div>
                        <i class="need">*</i>
                    </div>
                    <div class="item fl clearfix itemSelct">
                        <p>责任护士：</p>
                        <div class="select_box fl" id="infoNurse">
                            <input type="text" value="" class="select_txt" id="addNurseId" readonly/>
                            <div class="triangle"></div>
                            <div class="option_box getOptionBox"></div>
                        </div>
                        <i class="need">*</i>
                    </div>
                    <div class="item itemFirst fl clearfix itemSelct">
                        <p>分组：</p>
                        <div class="select_box fl">
                            <input type="text" value="一型糖尿病" data-value="1" class="select_txt" id="addDiabetesType" readonly/>
                            <div class="triangle"></div>
                            <div class="option_box">
                                <a data-value="1">一型糖尿病</a>
                                <a data-value="2">二型糖尿病</a>
                                <a data-value="3">妊娠型糖尿病</a>
                                <a data-value="4">特殊类型糖尿病</a>
                                <a data-value="5">非糖尿病</a>
                            </div>
                        </div>
                        <i class="need">*</i>
                    </div>
                </div>

                <div class="listBox clearfix">
                    <div class="item fl clearfix">
                        <p>床号：</p>
                        <input type="text" id="addSickbedNo">
                        <i class="need">*</i>
                    </div>
                    <div class="item fl clearfix itemSelct">
                        <p>护理级别：</p>
                        <div class="select_box fl">
                            <input type="text" value="一级护理" data-value="1" class="select_txt" id="addNurseLevel" readonly/>
                            <div class="triangle"></div>
                            <div class="option_box">
                                <a data-value="1">一级护理</a>
                                <a data-value="2">二级护理</a>
                                <a data-value="3">三级护理</a>
                                <a data-value="4">特级护理</a>
                            </div>
                        </div>
                        <i class="need">*</i>
                    </div>
                    <div class="item fl clearfix">
                        <p>手机号：</p>
                        <input type="text" id="addMobile" maxlength="11" onkeyup="this.value=this.value.replace(/[^\d]/g,'') " onafterpaste="this.value=this.value.replace(/[^\d]/g,'') ">
                    </div>
                </div>

                <div class="listBox txt clearfix">
                    <p class="fl">入院诊断：</p>
                    <textarea class="fl textArea" id="addInhospitalDiagnose" onkeyup="txtAutoHight(this)"></textarea>
                    <!--<i class="need">*</i>-->
                </div>
                <div class="listBox txt clearfix">
                    <p class="fl">并发症：</p>
                    <textarea class="fl textArea" id="addComplication" onkeyup="txtAutoHight(this)"></textarea>
                </div>
                <div class="listBox txt clearfix">
                    <p class="fl">家族史：</p>
                    <textarea class="fl textArea" id="addFamilySickness" onkeyup="txtAutoHight(this)"></textarea>
                </div>
                <div class="listBox txt clearfix">
                    <p class="fl">药物过敏史：</p>
                    <textarea class="fl textArea" id="addAllergy" onkeyup="txtAutoHight(this)"></textarea>
                </div>
                <div class="listBox txt clearfix">
                    <p class="fl">过去治疗方式：</p>
                    <textarea class="fl textArea" id="addHistoryTherapy" onkeyup="txtAutoHight(this)"></textarea>
                </div>
                <!--<div class="tips hideItem" style="color:red; text-align: center; margin: 10px 0 0">出错啦！</div>-->
                <div class="tips" style="display: none;color:red; text-align: center; margin: 10px 0 0"></div>
                <div class="add-btn clearfix">
                    <button id="addPatientSubmit" class="fr active" type="submit" value="">确认</button>
                    <button id="cancel" class="fr cancel" type="reset" value="">取消</button>
                </div>
            </div>
        </div>

        <!--血糖预警弹窗-->
        <div class="sugarWarnBox" id="sugarWarnBox">
            <div class="sugarWarnTitile clearfix">
                <p class="fl">血糖预警</p>
                <a class="fr" href="javascript:void(0)" id="WarnCloseAdd"></a>
            </div>
            <div class="sugarWarnContent">
                <div class="tips">
                    设定患者控糖目标值范围，患者血糖一旦超过目标值，您将会即时收到血糖预警通知。
                </div>
                <div class="warnContent" id="warnContent">
                    <ul>
                        <li class="clearfix">
                            <p class="fl">空&nbsp&nbsp&nbsp腹：</p>
                            <input type="text" class="tc" value="" id="emptyEx" onkeyup="clearNoNum(this)" />
                            <span class="line tc">-</span>
                            <input type="text" class="tc" value="" id="emptyAf" onkeyup="clearNoNum(this)" />
                            <span class="unit">mmol/L</span>
                        </li>
                        <li class="clearfix">
                            <p class="fl">早餐后：</p>
                            <input type="text" class="tc" value="" id="afterBreakfastEx" onkeyup="clearNoNum(this)" />
                            <span class="line tc">-</span>
                            <input type="text" class="tc" value="" id="afterBreakfastAf" onkeyup="clearNoNum(this)" />
                            <span class="unit">mmol/L</span>
                        </li>
                        <li class="clearfix">
                            <p class="fl">午餐前：</p>
                            <input type="text" class="tc" value="" id="beforeLunchEx" onkeyup="clearNoNum(this)" />
                            <span class="line tc">-</span>
                            <input type="text" class="tc" value="" id="beforeLunchAf" onkeyup="clearNoNum(this)" />
                            <span class="unit">mmol/L</span>
                        </li>
                        <li class="clearfix">
                            <p class="fl">午餐后：</p>
                            <input type="text" class="tc" value="" id="afterLunchEx" onkeyup="clearNoNum(this)" />
                            <span class="line tc">-</span>
                            <input type="text" class="tc" value="" id="afterLunchAf" onkeyup="clearNoNum(this)" />
                            <span class="unit">mmol/L</span>
                        </li>
                        <li class="clearfix">
                            <p class="fl">晚餐前：</p>
                            <input type="text" class="tc" value="" id="beforeDinnerEx" onkeyup="clearNoNum(this)" />
                            <span class="line tc">-</span>
                            <input type="text" class="tc" value="" id="beforeDinnerAf" onkeyup="clearNoNum(this)" />
                            <span class="unit">mmol/L</span>
                        </li>
                        <li class="clearfix">
                            <p class="fl">晚餐后：</p>
                            <input type="text" class="tc" value="" id="afterDinnerEx" onkeyup="clearNoNum(this)" />
                            <span class="line tc">-</span>
                            <input type="text" class="tc" value="" id="afterDinnerAf" onkeyup="clearNoNum(this)" />
                            <span class="unit">mmol/L</span>
                        </li>
                        <li class="clearfix">
                            <p class="fl">睡&nbsp&nbsp&nbsp前：</p>
                            <input type="text" class="tc" value="" id="beforeSleepEx" onkeyup="clearNoNum(this)" />
                            <span class="line tc">-</span>
                            <input type="text" class="tc" value="" id="beforeSleepAf" onkeyup="clearNoNum(this)" />
                            <span class="unit">mmol/L</span>
                        </li>
                        <li class="clearfix">
                            <p class="fl">凌&nbsp&nbsp&nbsp晨：</p>
                            <input type="text" class="tc" value="" id="beforeDawnEx" onkeyup="clearNoNum(this)" />
                            <span class="line tc">-</span>
                            <input type="text" class="tc" value="" id="beforeDawnAf" onkeyup="clearNoNum(this)" />
                            <span class="unit">mmol/L</span>
                        </li>
                    </ul>

                    <div class="sugarWarnBtn">
                        <button id="WarnCancel" class="fl cancel" type="reset" value="cancel">取消</button>
                        <button id="WarnSubmit" class="fr active" value="submit">确认</button>

                    </div>
                </div>

                <!--<div class="warnTips" style="display: none;color:red;" id="warnPopTips">请正确填写值</div>-->
                <div class="warnTips" style="display: none;color:red;" id="warnPopTips"></div>
            </div>
        </div>

        <!--添加血糖弹窗-->
        <div class="addSugarPop" id="addSugarBox">
            <div class="addSugarTitile clearfix">
                <p class="fl"></p>
                <a class="fr" href="javascript:void(0)" id="addSugarCloseBtn"></a>
            </div>
            <div class="addSugarContent clearfix">
                <div class="list clearfix">
                    <p class="fl">血糖数值：</p>
                    <input type="text" id="addSugarNo" onblur="addSugarNoRange(this)" onkeyup="clearNoNum(this)">
                    <span>mmol/L</span>
                    <div class="noTips tc">输入范围0.6-33.3</div>
                </div>
                <div class="list clearfix">
                    <p class="fl">时间段：</p>
                    <div class="select_box fl itemSelct" id="">
                        <input type="text" value="空腹" data-value="1" class="select_txt" id="addSugarTime" readonly/>
                        <div class="triangle"></div>
                        <div class="option_box">
                            <a data-value="1">空腹</a>
                            <a data-value="2">早餐后</a>
                            <a data-value="3">午餐前</a>
                            <a data-value="4">午餐后</a>
                            <a data-value="5">晚餐前</a>
                            <a data-value="6">晚餐后</a>
                            <a data-value="7">睡前</a>
                            <a data-value="8">凌晨</a>
                        </div>
                    </div>
                </div>
                <div class="list clearfix">
                    <p class="fl">测量时间：</p>
                    <input readonly type="text" class="measureTime laydate-icon" id="addSugarMeasureTime" onclick="laydate({elem:'#addSugarMeasureTime',istime: true,format: 'YYYY-MM-DD hh:mm',start:laydate.now(0,'YYYY/MM/DD hh:mm'),choose:checkDate})">
                    <p id='patientManageAddSugar' style='width: 100%;margin-top: -4px;text-align: center;color: red;display: none;'>请输入正确时间</p>
                </div>
                <div class="list listLast clearfix">
                    <p class="fl">备注：</p>
                    <textarea class="fl" maxlength="140" onkeyup="txtAutoHight(this)" id="addSugarRemark"></textarea>
                </div>
                <div class="addSugarBtn fr">
                    <button class="fl" id="addSugarCancel">取消</button>
                    <button class="active fl" id="addSugarSubmit">确认</button>
                </div>
            </div>
        </div>
    </div>


    <!--血糖打印表1-->
    <div class="patient-gis-print hideItem">
        <div class="content">
            <div class="title">
                <!--<span>血糖明细</span>-->
                <button class="bloodBtn details">血糖记录明细单</button>
                <button class="bloodBtn select-choose statistics">血糖检测统计单</button>
                <button class="bloodBtn implement">血糖检测执行单</button>
                <a href="javascript:void (0)" class="cancelBtn"></a>
            </div>
            <div class="user-choose">
                <p class="user-nurse">执行人 ： </p>
                <div class="select">
                    <div class="triangle"></div>
                    <input type="button" class="select-btn" readonly value="全部" />
                    <div class="list-show scrollBar" style="display: none;">
                        <ul class="select-list user-select-list">
                            <script type="text/template" id="select-list-template-nurse">
                                <li>全部</li>
                                <%_.each(obj,function(e,i){%>
                                    <li val="<%=e.userId%>">
                                        <%=e.name%>
                                    </li>
                                    <%})%>
                            </script>
                        </ul>
                    </div>
                    <!--<div class="list-show scrollBar" style="display: none;">
                                <ul class="select-list">
                                	

                                </ul>
                            </div>-->
                </div>
            </div>

            <div class="print-content">
                <div>
                    <!--//血糖记录明细单-->
                    <div class="details-content hideItem">
                        <div class="gis-list">
                            <script type="text/template" id="details-content-template">
                                <!--<p>血糖记录明细单</p>-->
                                <div class="hospital-title" align="center" colspan="10">
                                    <p class="hospital-title-text"></p>
                                    <p>血糖记录明细单</p>
                                </div>
                                <div class="td-info">
                                    <div class="patient-info">
                                        <div class="item"><span>住院号 ：</span>
                                            <%=patient.hospitalizationNo%>
                                        </div>
                                        <div class="item"><span>姓名 : </span>
                                            <%=patient.name%>
                                        </div>
                                        <div class="item"><span>性别 : </span>
                                            <%=(patient.sex==1?'男':'女')%>
                                        </div>
                                        <div class="item"><span>科室 : </span>
                                            <%=patient.deptName%>
                                        </div>
                                        <div class="item"><span>床位号 : </span>
                                            <%=patient.sickbedNo%>
                                        </div>
                                    </div>
                                </div>
                                <table cellspacing="0" cellpadding="0" id="detailsTab">

                                    <thead style="display:table-header-group;">
                                        <tr>
                                            <td class="theadspace" colspan="10"></td>
                                        </tr>
                                        <!--<tr>
							<td class="hospital-title" align="center" colspan="10">
								<p>深圳第一人民医院</p>
								<p>血糖明细表</p>
							</td>
						</tr>-->
                                        <!--<tr>
							<td class="td-info" colspan="10">
								<div class="patient-info" >
									<div class="item"><span>住院号 ：</span><%=patient.hospitalizationNo%></div>
									<div class="item"><span>姓名 : </span><%=patient.name%></div>
									<div class="item"><span>性别 : </span><%=(patient.sex==1?'男':'女')%></div>
									<div class="item"><span>科室 : </span><%=patient.deptName%></div>
									<div class="item"><span>床位号 : </span><%=patient.sickbedNo%></div>
								</div>
							</td>
						</tr>-->
                                        <tr>
                                            <td style="max-width: 50px">日期</td>
                                            <td>时间</td>
                                            <td>时段</td>
                                            <td>测量结果</td>
                                            <td>执行人</td>
                                            <td style="min-width: 400px; overflow: hidden;">备注</td>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <%_.each(records,function(e,i){%>
                                            <tr>
                                                <td style="max-width: 50px">
                                                    <%=e.date%>
                                                </td>
                                                <td>
                                                    <%=e.time%>
                                                </td>
                                                <td>
                                                    <%if(e.timeType==1){%>空腹
                                                        <%}else if(e.timeType==2){%>早餐后
                                                            <%}else if(e.timeType==3){%>午餐前
                                                                <%}else if(e.timeType==4){%>午餐后
                                                                    <%}else if(e.timeType==5){%>晚餐前
                                                                        <%}else if(e.timeType==6){%>晚餐后
                                                                            <%}else if(e.timeType==7){%>睡前
                                                                                <%}else if(e.timeType==8){%>凌晨
                                                                                    <%}%>
                                                </td>
                                                <td>
                                                    <%if(e.type==1){%>
                                                        <%=e.sugar%>
                                                            <%}else if(e.type==2){%>拒测
                                                                <%}else if(e.type==3){%>外出
                                                                    <%}else if(e.type==4){%>进食
                                                                        <%}else if(e.type==5){%>检查
                                                                            <%}%>

                                                </td>
                                                <td style="color: #cccccc;">
                                                    <%=e.nurseName%>
                                                </td>
                                                <td style="min-width:400px; overflow: hidden;">
                                                    <%=e.remark%>
                                                </td>
                                            </tr>


                                            <%})%>

                                    </tbody>
                                </table>
                            </script>
                        </div>
                    </div>

                    <!--血糖检测统计单-->
                    <div class="statistics-content">
                        <div class="gis-list">
                            <script type="text/template" id="gis-print-template">
                                <div class="hospital-title" align="center" colspan="10">
                                    <p class="hospital-title-text"></p>
                                    <p>血糖检测统计单</p>
                                </div>
                                <div class="td-info">
                                    <div class="patient-info">
                                        <div class="item"><span>住院号 ：</span>
                                            <%=patient.hospitalizationNo%>
                                        </div>
                                        <div class="item"><span>姓名 : </span>
                                            <%=patient.name%>
                                        </div>
                                        <div class="item"><span>性别 : </span>
                                            <%=(patient.sex==1?'男':'女')%>
                                        </div>
                                        <div class="item"><span>科室 : </span>
                                            <%=patient.deptName%>
                                        </div>
                                        <div class="item"><span>床位号 : </span>
                                            <%=patient.sickbedNo%>
                                        </div>
                                    </div>
                                </div>
                                <table cellspacing="0" cellpadding="0" id="statisticsTab">

                                    <thead style="display:table-header-group;">
                                        <tr>
                                            <td class="theadspace" colspan="10"></td>
                                        </tr>
                                        <!--<tr>
							<td class="hospital-title" align="center" colspan="10">
								<p>深圳第一人民医院</p>
								<p>血糖明细表</p>
							</td>
						</tr>-->
                                        <!--<tr>
							<td class="td-info" colspan="10">
								<div class="patient-info" >
									<div class="item"><span>住院号 ：</span><%=patient.hospitalizationNo%></div>
									<div class="item"><span>姓名 : </span><%=patient.name%></div>
									<div class="item"><span>性别 : </span><%=(patient.sex==1?'男':'女')%></div>
									<div class="item"><span>科室 : </span><%=patient.deptName%></div>
									<div class="item"><span>床位号 : </span><%=patient.sickbedNo%></div>
								</div>
							</td>
						</tr>-->
                                        <tr>
                                            <td rowspan="2">日期</td>
                                            <td rowspan="2">凌晨</td>
                                            <!--<td rowspan="2">空腹</td>-->
                                            <td colspan="2" style="width:20px;">早餐</td>
                                            <td colspan="2" style="width:20px;">午餐</td>
                                            <td colspan="2" style="width:20px;">晚餐</td>
                                            <td rowspan="2">睡前</td>
                                            <td rowspan="2">次数</td>
                                        </tr>
                                        <tr>
                                            <td style="width:20px;">空腹</td>
                                            <td style="width:20px;">后</td>
                                            <td style="width:20px;">前</td>
                                            <td style="width:20px;">后</td>
                                            <td style="width:20px;">前</td>
                                            <td style="width:20px;">后</td>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <%_.each(statistics,function(e,i){%>

                                            <%if(e.maxTr>0){%>
                                                <%_.each(e.timeTypeSugars[e.maxIdx].tests,function(ele,j){%>
                                                    <tr>
                                                        <%if(j==0){%>
                                                            <td rowspan="<%=e.maxTr%>">
                                                                <%=e.date%>
                                                            </td>
                                                            <%}%>
                                                                <td>
                                                                    <%if(e.timeTypeSugars[7] && e.timeTypeSugars[7].timeType&&e.timeTypeSugars[7].timeType==8){%>

                                                                        <%if(e.timeTypeSugars[7].tests[j]&&e.timeTypeSugars[7].tests[j].type==1){%>
                                                                            <%=e.timeTypeSugars[7].tests[j].sugar%>
                                                                                <%}else if(e.timeTypeSugars[7].tests[j]&&e.timeTypeSugars[7].tests[j].type==2){%>
                                                                                    <span>拒测</span>
                                                                                    <%}else if(e.timeTypeSugars[7].tests[j]&&e.timeTypeSugars[7].tests[j].type==3){%>
                                                                                        <span>外出</span>
                                                                                        <%}else if(e.timeTypeSugars[7].tests[j]&&e.timeTypeSugars[7].tests[j].type==4){%>
                                                                                            <span>进食</span>
                                                                                            <%}else if(e.timeTypeSugars[7].tests[j]&&e.timeTypeSugars[7].tests[j].type==5){%>
                                                                                                <span>检查</span>
                                                                                                <%}%>
                                                                                                    <!-- <%=(e.timeTypeSugars[7].tests[j]?e.timeTypeSugars[7].tests[j].sugar:'')%> -->

                                                                                                    <%}%>
                                                                </td>
                                                                <td style="width:20px;">
                                                                    <%if(e.timeTypeSugars[0] && e.timeTypeSugars[0].timeType&&e.timeTypeSugars[0].timeType==1){%>

                                                                        <%if(e.timeTypeSugars[0].tests[j]&&e.timeTypeSugars[0].tests[j].type==1){%>
                                                                            <%=e.timeTypeSugars[0].tests[j].sugar%>
                                                                                <%}else if(e.timeTypeSugars[0].tests[j]&&e.timeTypeSugars[0].tests[j].type==2){%>
                                                                                    <span>拒测</span>
                                                                                    <%}else if(e.timeTypeSugars[0].tests[j]&&e.timeTypeSugars[0].tests[j].type==3){%>
                                                                                        <span>外出</span>
                                                                                        <%}else if(e.timeTypeSugars[0].tests[j]&&e.timeTypeSugars[0].tests[j].type==4){%>
                                                                                            <span>进食</span>
                                                                                            <%}else if(e.timeTypeSugars[0].tests[j]&&e.timeTypeSugars[0].tests[j].type==5){%>
                                                                                                <span>检查</span>
                                                                                                <%}%>
                                                                                                    <!-- <%=(e.timeTypeSugars[0].tests[j]?e.timeTypeSugars[0].tests[j].sugar:'')%> -->

                                                                                                    <%}%>
                                                                </td>
                                                                <td>
                                                                    <%if(e.timeTypeSugars[1] && e.timeTypeSugars[1].timeType&&e.timeTypeSugars[1].timeType==2){%>

                                                                        <%if(e.timeTypeSugars[1].tests[j]&&e.timeTypeSugars[1].tests[j].type==1){%>
                                                                            <%=e.timeTypeSugars[1].tests[j].sugar%>
                                                                                <%}else if(e.timeTypeSugars[1].tests[j]&&e.timeTypeSugars[1].tests[j].type==2){%>
                                                                                    <span>拒测</span>
                                                                                    <%}else if(e.timeTypeSugars[1].tests[j]&&e.timeTypeSugars[1].tests[j].type==3){%>
                                                                                        <span>外出</span>
                                                                                        <%}else if(e.timeTypeSugars[1].tests[j]&&e.timeTypeSugars[1].tests[j].type==4){%>
                                                                                            <span>进食</span>
                                                                                            <%}else if(e.timeTypeSugars[1].tests[j]&&e.timeTypeSugars[1].tests[j].type==5){%>
                                                                                                <span>检查</span>
                                                                                                <%}else if(e.timeTypeSugars[1].tests[j]&&e.timeTypeSugars[1].tests[j].type==6){%>
                                                                                                    <span>其他</span>
                                                                                                    <%}%>
                                                                                                        <!-- <%=(e.timeTypeSugars[1].tests[j]?e.timeTypeSugars[1].tests[j].sugar:'')%> -->

                                                                                                        <%}%>
                                                                </td>
                                                                <td>
                                                                    <%if(e.timeTypeSugars[2] && e.timeTypeSugars[2].timeType&&e.timeTypeSugars[2].timeType==3){%>
                                                                        <%if(e.timeTypeSugars[2].tests[j]&&e.timeTypeSugars[2].tests[j].type==1){%>
                                                                            <%=e.timeTypeSugars[2].tests[j].sugar%>
                                                                                <%}else if(e.timeTypeSugars[2].tests[j]&&e.timeTypeSugars[2].tests[j].type==2){%>
                                                                                    <span>拒测</span>
                                                                                    <%}else if(e.timeTypeSugars[2].tests[j]&&e.timeTypeSugars[2].tests[j].type==3){%>
                                                                                        <span>外出</span>
                                                                                        <%}else if(e.timeTypeSugars[2].tests[j]&&e.timeTypeSugars[2].tests[j].type==4){%>
                                                                                            <span>进食</span>
                                                                                            <%}else if(e.timeTypeSugars[2].tests[j]&&e.timeTypeSugars[2].tests[j].type==5){%>
                                                                                                <span>检查</span>
                                                                                                <%}%>
                                                                                                    <!-- <%=(e.timeTypeSugars[2].tests[j]?e.timeTypeSugars[2].tests[j].sugar:'')%> -->

                                                                                                    <%}%>
                                                                </td>
                                                                <td>
                                                                    <%if(e.timeTypeSugars[3] && e.timeTypeSugars[3].timeType&&e.timeTypeSugars[3].timeType==4){%>

                                                                        <%if(e.timeTypeSugars[3].tests[j]&&e.timeTypeSugars[3].tests[j].type==1){%>
                                                                            <%=e.timeTypeSugars[3].tests[j].sugar%>
                                                                                <%}else if(e.timeTypeSugars[3].tests[j]&&e.timeTypeSugars[3].tests[j].type==2){%>
                                                                                    <span>拒测</span>
                                                                                    <%}else if(e.timeTypeSugars[3].tests[j]&&e.timeTypeSugars[3].tests[j].type==3){%>
                                                                                        <span>外出</span>
                                                                                        <%}else if(e.timeTypeSugars[3].tests[j]&&e.timeTypeSugars[3].tests[j].type==4){%>
                                                                                            <span>进食</span>
                                                                                            <%}else if(e.timeTypeSugars[3].tests[j]&&e.timeTypeSugars[3].tests[j].type==5){%>
                                                                                                <span>检查</span>
                                                                                                <%}%>
                                                                                                    <!-- <%=(e.timeTypeSugars[3].tests[j]?e.timeTypeSugars[3].tests[j].sugar:'')%> -->

                                                                                                    <%}%>
                                                                </td>
                                                                <td>
                                                                    <%if(e.timeTypeSugars[4] && e.timeTypeSugars[4].timeType&&e.timeTypeSugars[4].timeType==5){%>

                                                                        <%if(e.timeTypeSugars[4].tests[j]&&e.timeTypeSugars[4].tests[j].type==1){%>
                                                                            <%=e.timeTypeSugars[4].tests[j].sugar%>
                                                                                <%}else if(e.timeTypeSugars[4].tests[j]&&e.timeTypeSugars[4].tests[j].type==2){%>
                                                                                    <span>拒测</span>
                                                                                    <%}else if(e.timeTypeSugars[4].tests[j]&&e.timeTypeSugars[4].tests[j].type==3){%>
                                                                                        <span>外出</span>
                                                                                        <%}else if(e.timeTypeSugars[4].tests[j]&&e.timeTypeSugars[4].tests[j].type==4){%>
                                                                                            <span>进食</span>
                                                                                            <%}else if(e.timeTypeSugars[4].tests[j]&&e.timeTypeSugars[4].tests[j].type==5){%>
                                                                                                <span>检查</span>
                                                                                                <%}%>
                                                                                                    <!-- <%=(e.timeTypeSugars[4].tests[j]?e.timeTypeSugars[4].tests[j].sugar:'')%> -->

                                                                                                    <%}%>
                                                                </td>
                                                                <td>
                                                                    <%if(e.timeTypeSugars[5] && e.timeTypeSugars[5].timeType&&e.timeTypeSugars[5].timeType==6){%>


                                                                        <%if(e.timeTypeSugars[5].tests[j]&&e.timeTypeSugars[5].tests[j].type==1){%>
                                                                            <%=e.timeTypeSugars[5].tests[j].sugar%>
                                                                                <%}else if(e.timeTypeSugars[5].tests[j]&&e.timeTypeSugars[5].tests[j].type==2){%>
                                                                                    <span>拒测</span>
                                                                                    <%}else if(e.timeTypeSugars[5].tests[j]&&e.timeTypeSugars[5].tests[j].type==3){%>
                                                                                        <span>外出</span>
                                                                                        <%}else if(e.timeTypeSugars[5].tests[j]&&e.timeTypeSugars[5].tests[j].type==4){%>
                                                                                            <span>进食</span>
                                                                                            <%}else if(e.timeTypeSugars[5].tests[j]&&e.timeTypeSugars[5].tests[j].type==5){%>
                                                                                                <span>检查</span>
                                                                                                <%}%>
                                                                                                    <!-- <%=(e.timeTypeSugars[5].tests[j]?e.timeTypeSugars[5].tests[j].sugar:'')%> -->

                                                                                                    <%}%>
                                                                </td>
                                                                <td>
                                                                    <%if(e.timeTypeSugars[6] && e.timeTypeSugars[6].timeType&&e.timeTypeSugars[6].timeType==7){%>

                                                                        <%if(e.timeTypeSugars[6].tests[j]&&e.timeTypeSugars[6].tests[j].type==1){%>
                                                                            <%=e.timeTypeSugars[6].tests[j].sugar%>
                                                                                <%}else if(e.timeTypeSugars[6].tests[j]&&e.timeTypeSugars[6].tests[j].type==2){%>
                                                                                    <span>拒测</span>
                                                                                    <%}else if(e.timeTypeSugars[6].tests[j]&&e.timeTypeSugars[6].tests[j].type==3){%>
                                                                                        <span>外出</span>
                                                                                        <%}else if(e.timeTypeSugars[6].tests[j]&&e.timeTypeSugars[6].tests[j].type==4){%>
                                                                                            <span>进食</span>
                                                                                            <%}else if(e.timeTypeSugars[6].tests[j]&&e.timeTypeSugars[6].tests[j].type==5){%>
                                                                                                <span>检查</span>
                                                                                                <%}%>
                                                                                                    <!-- <%=(e.timeTypeSugars[6].tests[j]?e.timeTypeSugars[6].tests[j].sugar:'')%> -->

                                                                                                    <%}%>
                                                                </td>

                                                                <%if(j==0){%>
                                                                    <td rowspan="<%=e.maxTr%>">
                                                                        <%=e.count%>
                                                                    </td>
                                                                    <%}%>
                                                    </tr>
                                                    <%})%>
                                                        <%}%>
                                                            <%})%>

                                    </tbody>
                                </table>
                            </script>
                        </div>

                    </div>
                    <!--//血糖检测执行单-->
                    <div class="implement-content hideItem">
                        <div class="gis-list">
                            <script type="text/template" id="implement-content-template">
                                <div class="hospital-title" align="center" colspan="10">
                                    <p class="hospital-title-text"></p>
                                    <p>血糖检测执行单</p>
                                </div>
                                <div class="td-info">
                                    <div class="patient-info">
                                        <div class="item"><span>住院号 ：</span>
                                            <%=patient.hospitalizationNo%>
                                        </div>
                                        <div class="item"><span>姓名 : </span>
                                            <%=patient.name%>
                                        </div>
                                        <div class="item"><span>性别 : </span>
                                            <%=(patient.sex==1?'男':'女')%>
                                        </div>
                                        <div class="item"><span>科室 : </span>
                                            <%=patient.deptName%>
                                        </div>
                                        <div class="item"><span>床位号 : </span>
                                            <%=patient.sickbedNo%>
                                        </div>
                                    </div>
                                </div>
                                <table cellspacing="0" cellpadding="0" id="implementTab">

                                    <thead style="display:table-header-group;">
                                        <tr>
                                            <td class="theadspace" colspan="10"></td>
                                        </tr>
                                        <!--<tr>
							<td class="hospital-title" align="center" colspan="10">
								<p>深圳第一人民医院</p>
								<p>血糖明细表</p>
							</td>
						</tr>-->
                                        <!--<tr>
							<td class="td-info" colspan="10">
								<div class="patient-info" >
									<div class="item"><span>住院号 ：</span><%=patient.hospitalizationNo%></div>
									<div class="item"><span>姓名 : </span><%=patient.name%></div>
									<div class="item"><span>性别 : </span><%=(patient.sex==1?'男':'女')%></div>
									<div class="item"><span>科室 : </span><%=patient.deptName%></div>
									<div class="item"><span>床位号 : </span><%=patient.sickbedNo%></div>
								</div>
							</td>
						</tr>-->
                                        <tr>
                                            <td rowspan="2" style="width: 30px;">日期</td>
                                            <td rowspan="2">凌晨</td>
                                            <td colspan="2" style="width:15px;">早餐</td>
                                            <td colspan="2" style="width:15px;">午餐</td>
                                            <td colspan="2" style="width:15px;">晚餐</td>
                                            <td rowspan="2">睡前</td>
                                        </tr>
                                        <tr>
                                            <td class="td2" style="width:20px;">空腹</td>
                                            <td class="td2" style="width:20px;">后</td>
                                            <td class="td2" style="width:20px;">前</td>
                                            <td class="td2" style="width:20px;">后</td>
                                            <td class="td2" style="width:20px;">前</td>
                                            <td class="td2" style="width:20px;">后</td>
                                        </tr>
                                        <!--<tr>
                                    <td>日期</td>
                                    <td>空腹</td>
                                    <td>早餐后</td>
                                    <td>午餐前</td>
                                    <td>午餐后</td>
                                    <td>晚餐前</td>
                                    <td>晚餐后</td>
                                    <td>睡前</td>
                                    <td>凌晨</td>
                                    <td>次数</td>
                                </tr>-->
                                    </thead>
                                    <tbody>
                                        <%_.each(records,function(e,i){%>
                                            <tr>
                                                <td>
                                                    <%=e[0]%>
                                                </td>
                                                <td>
                                                    <%=e[8]%>
                                                </td>
                                                <td>
                                                    <%=e[1]%>
                                                </td>
                                                <td>
                                                    <%=e[2]%>
                                                </td>
                                                <td>
                                                    <%=e[3]%>
                                                </td>
                                                <td>
                                                    <%=e[4]%>
                                                </td>
                                                <td>
                                                    <%=e[5]%>
                                                </td>
                                                <td>
                                                    <%=e[6]%>
                                                </td>
                                                <td>
                                                    <%=e[7]%>
                                                </td>

                                            </tr>
                                            <%})%>

                                    </tbody>
                                </table>
                            </script>
                        </div>
                    </div>
                </div>

            </div>
            <div class="btn">
                <!--<button class="exprotBtn">导出</button>-->
                <button class="printBtn">打印</button>
            </div>

        </div>
    </div>

    <!--血糖打印表2-->
    <div class="patient-gis-print2 hideItem">
        <div class="content">
            <div class="title">
                <span>血糖记录表二</span>
                <a href="javascript:void (0)" class="cancelBtn"></a>
            </div>
            <div class="print-content2">

                <div class="hospital-title tc">
                    <p class="name"></p>
                    <p>电脑血糖检测记录表</p>
                </div>
                <div class="td-info">
                    <div class="patient-info">
                        <script type="text/template" id="gis-print2-info-template">
                            <%_.each(obj,function(e,i){%>
                                <div class="item"><span>姓名 ：<%=e.name%></span></div>
                                <div class="item"><span>床号 : <%=e.sickbedNo%></span></div>
                                <div class="item"><span>住院号 : <%=e.hospitalizationNo%></span></div>
                                <div class="item"><span>年份 : <%=e.createTime?e.createTime.split(' ')[0].split('-')[0]+'年':''%></span></div>
                                <%})%>
                        </script>
                    </div>
                </div>

                <table cellspacing="0" cellpadding="0">

                    <thead style="display:table-header-group;">
                        <tr>
                            <td>日期</td>
                            <td>早餐前</td>
                            <td>中餐前</td>
                            <td>晚餐前</td>
                            <td>睡前</td>
                        </tr>
                    </thead>
                    <tbody>
                        <script type="text/template" id="gis-print2-template">
                            <%_.each(obj,function(e,i){%>
                                <tr>
                                    <td>
                                        <%var timeStr=e.createTime?e.createTime.split(' ')[0]:''%>
                                            <%var time=timeStr?timeStr.split('-'):''%>
                                                <%if(isNaN(time)){%>
                                                    <%print(time[1])%>月
                                                        <%print(time[2])%>日
                                                            <%}%>
                                    </td>
                                    <td>
                                        <%_.each(e.daylist,function(el,j){%>
                                            <%if(el.timeType==1){%>
                                                <%=el.sugar?el.sugar+'mmol/L':''%>
                                                    <%}%>
                                                        <%})%>
                                    </td>
                                    <td>
                                        <%_.each(e.daylist,function(el,j){%>
                                            <%if(el.timeType==3){%>
                                                <%=el.sugar?el.sugar+'mmol/L':''%>
                                                    <%}%>
                                                        <%})%>
                                    </td>
                                    <td>
                                        <%_.each(e.daylist,function(el,j){%>
                                            <%if(el.timeType==5){%>
                                                <%=el.sugar?el.sugar+'mmol/L':''%>
                                                    <%}%>
                                                        <%})%>
                                    </td>
                                    <td>
                                        <%_.each(e.daylist,function(el,j){%>
                                            <%if(el.timeType==7){%>
                                                <%=el.sugar?el.sugar+'mmol/L':''%>
                                                    <%}%>
                                                        <%})%>
                                    </td>

                                </tr>
                                <tr>
                                    <td>执行者</td>
                                    <td>
                                        <%_.each(e.daylist,function(el,j){%>
                                            <%if(el.timeType==1){%>
                                                <%=el.nurseName?el.nurseName:''%>
                                                    <%}%>
                                                        <%})%>
                                    </td>
                                    <td>
                                        <%_.each(e.daylist,function(el,j){%>
                                            <%if(el.timeType==3){%>
                                                <%=el.nurseName?el.nurseName:''%>
                                                    <%}%>
                                                        <%})%>
                                    </td>
                                    <td>
                                        <%_.each(e.daylist,function(el,j){%>
                                            <%if(el.timeType==5){%>
                                                <%=el.nurseName?el.nurseName:''%>
                                                    <%}%>
                                                        <%})%>
                                    </td>
                                    <td>
                                        <%_.each(e.daylist,function(el,j){%>
                                            <%if(el.timeType==7){%>
                                                <%=el.nurseName?el.nurseName:''%>
                                                    <%}%>
                                                        <%})%>
                                    </td>
                                </tr>
                                <%})%>
                        </script>

                    </tbody>
                </table>

            </div>
            <div class="btn">
                <button class="exprotBtn hideItem">导出</button>
                <button class="printBtn">打印</button>
            </div>
        </div>
    </div>

    <!--血糖打印表3-->
    <div class="patient-gis-print3 hideItem">
        <div class="content">
            <div class="title">
                <span>血糖测定记录</span>
                <a href="javascript:void (0)" class="cancelBtn"></a>
            </div>
            <div class="dateSel">
                <input type="text" readonly id="startDate" class="laydate-icon tc"> 至
                <input type="text" readonly id="endDate" class="laydate-icon tc">
                <a href="javascript:void (0)" onclick="dateSelect()">查询</a>
            </div>
            <div class="print-content3">

                <script type="text/template" id="gis-print3-template">
                    <%_.each(obj,function(e,i){%>
                        <div class="page-break" style="page-break-after:always">
                            <div class="hospital-title tc">
                                <p class="name"></p>
                                <p>CSⅡ治疗及微血管血糖测定记录表</p>
                            </div>
                            <div class="td-info">
                                <div class="patient-info"></div>
                            </div>
                            <table cellspacing="0" cellpadding="0">
                                <tbody>
                                    <%_.each(e,function(el,j){%>
                                        <tr>
                                            <td rowspan="3" class="td1">日期</td>
                                            <td rowspan="3" class="td1">基础率</td>
                                            <td colspan="3" class="td2">00:00-03:00：_____U/h</td>
                                            <td colspan="3" class="td2">03:00-07:00：_____U/h</td>
                                            <td rowspan="3" colspan="2" class="td2 totalBasic">
                                                <div>总基础量</div>
                                                <div>_____U/24h</div>
                                            </td>
                                            <td class="td1">签名：</td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" class="td2">07:00-12:00：_____U/h</td>
                                            <td colspan="3" class="td2">12:00-17:00：_____U/h</td>
                                            <td rowspan="2" class="td1"></td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" class="td2">17:00-22:00：_____U/h</td>
                                            <td colspan="3" class="td2">22:00-24:00：_____U/h</td>
                                        </tr>
                                        <tr>
                                            <td rowspan="7" class="td1">
                                                <%var timeStr=el.createTime?el.createTime.split(' ')[0]:''%>
                                                    <%var time=timeStr?timeStr.split('-'):''%>
                                                        <%if(isNaN(time)){%>
                                                            <%print(time[0])%> 年<br>
                                                                <%print(time[1])%>月
                                                                    <%print(time[2])%>日
                                                                        <%}%>
                                            </td>
                                            <td rowspan="2" class="td1">
                                                <span>血糖值</span><br>
                                                <span style="font-size: 12px">(mmol/L)</span>
                                            </td>
                                            <td class="td2">00:00</td>
                                            <td class="td2">03:00</td>
                                            <td class="td1">早餐前</td>
                                            <td class="td2">早餐后</td>
                                            <td class="td2">中餐前</td>
                                            <td class="td1">中餐后</td>
                                            <td colspan="2" class="td2">晚餐前</td>
                                            <td class="td1">晚餐后</td>
                                        </tr>
                                        <tr>
                                            <td class="td2">
                                                <%=el.beforeSleep%>
                                            </td>
                                            <td class="td2">
                                                <%=el.beforeDawn%>
                                            </td>
                                            <td class="td1">
                                                <%=el.beforeBreakfast%>
                                            </td>
                                            <td class="td2">
                                                <%=el.afterBreakfast%>
                                            </td>
                                            <td class="td2">
                                                <%=el.beforeLunch%>
                                            </td>
                                            <td class="td1">
                                                <%=el.afterLunch%>
                                            </td>
                                            <td colspan="2" class="td2">
                                                <%=el.beforeDinner%>
                                            </td>
                                            <td class="td1">
                                                <%=el.afterDinner%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="td1">执行者</td>
                                            <td class="td2">
                                                <%=el.nurseNameList[6]%>
                                            </td>
                                            <td class="td2">
                                                <%=el.nurseNameList[7]%>
                                            </td>
                                            <td class="td1">
                                                <%=el.nurseNameList[0]%>
                                            </td>
                                            <td class="td2">
                                                <%=el.nurseNameList[1]%>
                                            </td>
                                            <td class="td2">
                                                <%=el.nurseNameList[2]%>
                                            </td>
                                            <td class="td1">
                                                <%=el.nurseNameList[3]%>
                                            </td>
                                            <td colspan="2" class="td2">
                                                <%=el.nurseNameList[4]%>
                                            </td>
                                            <td class="td1">
                                                <%=el.nurseNameList[5]%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td rowspan="2" class="td2">餐前量</td>
                                            <td colspan="2" class="td2">早餐前</td>
                                            <td class="td1">签名：</td>
                                            <td colspan="2" class="td2">午餐前</td>
                                            <td class="td1">签名：</td>
                                            <td colspan="2" class="td2">晚餐前</td>
                                            <td class="td1">签名：</td>
                                        </tr>
                                        <tr>
                                            <td colspan="2" class="td2 tr keepRight">U</td>
                                            <td class="td1"></td>
                                            <td colspan="2" class="td2 tr keepRight">U</td>
                                            <td class="td1"></td>
                                            <td colspan="2" class="td2 tr keepRight">U</td>
                                            <td class="td1"></td>
                                        </tr>
                                        <tr>
                                            <td rowspan="2" class="td1">追加量</td>
                                            <td class="td2">时间</td>
                                            <td class="td2"></td>
                                            <td class="td1">签名：</td>
                                            <td class="td2">时间</td>
                                            <td class="td2"></td>
                                            <td class="td1">签名：</td>
                                            <td class="td2">时间</td>
                                            <td class="td2"></td>
                                            <td class="td1">签名：</td>
                                        </tr>
                                        <tr>
                                            <td class="td2">剂量</td>
                                            <td class="td2 tr keepRight">U</td>
                                            <td class="td1"></td>
                                            <td class="td2">剂量</td>
                                            <td class="td2 tr keepRight">U</td>
                                            <td class="td1"></td>
                                            <td class="td2">剂量</td>
                                            <td class="td2 tr keepRight">U</td>
                                            <td class="td1"></td>
                                        </tr>

                                        <%})%>
                                </tbody>
                            </table>

                            <div class="footer clearfix">
                                <p class="fl">胰岛素泵安装者：</p>
                                <p class="fr">安装日期：_________年_______月_______日</p>
                            </div>
                        </div>
                        <%})%>
                </script>

            </div>
            <div class="btn">
                <button class="exprotBtn hideItem">导出</button>
                <button class="printBtn">打印</button>
            </div>
        </div>
    </div>

    <!--阳西打印表-->
    <div id="yangxi-gis-print"></div>
</body>


<script type="text/javascript" src="js/control/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="js/control/underscore.min.js"></script>
<script type="text/javascript" src="js/control/laydate.min.js"></script>
<script type="text/javascript" src="js/control/echarts.min.js"></script>
<script type="text/javascript" src="js/control/jq-migrate-1.2.1.min.js"></script>
<script type="text/javascript" src="js/control/jquery.jqprint-0.3.min.js"></script>

<script type="text/javascript" src="js/custom/config.js"></script>


<script type="text/javascript" src="js/custom/common.js"></script>
<script type="text/javascript" src="js/custom/createPage.js"></script>
<script type="text/javascript" src="js/custom/patientInfo.js"></script>

<script type="text/javascript" src="js/custom/index.js"></script>

<!--阳西个性版本-->
<!--<script type="text/javascript" src="yangxi/yangxi.js"></script>-->

<!--短信通知脚本-阳西不适用-->
<!--<script type="text/javascript" src="js/custom/patientInfo_longling.js"></script>-->

</html>